Page MenuHomeFreeBSD

iichid: Consume GPIO interrupts via cousin interrupt mechanism
Needs ReviewPublic

Authored by obiwac on Tue, Sep 15, 12:55 AM.
Tags
None
Referenced Files
F172008477: D59686.diff
Tue, Sep 15, 8:39 AM
F171997917: D59686.diff
Tue, Sep 15, 6:17 AM
F171997196: D59686.id186742.diff
Tue, Sep 15, 6:08 AM
F171972300: D59686.id186742.diff
Tue, Sep 15, 1:10 AM
F171972015: D59686.diff
Tue, Sep 15, 1:05 AM
Subscribers

Details

Reviewers
aokblast
Summary

When the normal IRQ resource allocation fails (e.g. on x86 when the
touchpad interrupt comes from a cousin GPIO controller rather than an
ancestor PIC), register as a cousin interrupt consumer.

When the GPIO interrupt source attaches later, the setup callback
disables sampling mode in favor of the direct interrupt. If the source
detaches, re-register the request and fall back to sampling.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76912
Build 73795: arc lint + arc unit