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)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 5 May 2021 14:07:40 +0000 (16:07 +0200)
commitfdc1f5dfb9aa890473d6f94bd224d45cf2f0443d
treef07a2410b41e9eb8578152a8b1beedd0fac0f793
parent7a81638485c1a62a87b4c391ecc9c651a4a9dc19
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