]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpio: sch: Hook into ACPI GPE handler to catch GPIO edge events
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 17 Mar 2021 15:19:28 +0000 (17:19 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 27 Mar 2021 21:48:55 +0000 (23:48 +0200)
commit6c46215d6b626cb0981f8332da506b69b98c4b49
tree0b5b548fc54ce3c494b1aa2f837a01b005a9e456
parentac2be863a98fc56eb6da368a7cb0df3b8a15a4f5
gpio: sch: Hook into ACPI GPE handler to catch GPIO edge events

Neither the ACPI description on Intel Minnowboard (v1) platform provides
the required information to establish a generic handling nor the hardware
capable of doing it. According to the data sheet the hardware can generate
SCI events. Therefore, we need to hook from the driver into GPE handler of
the ACPI subsystem in order to catch and report GPIO-related events.

Validated on the Inlel Minnowboard (v1) platform and Intel Galileo Gen 2.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/gpio-sch.c