]> git.baikalelectronics.ru Git - kernel.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)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 5 May 2021 14:07:40 +0000 (16:07 +0200)
commitd2838c784493e45e67f2b4b2d4cd9e046d569010
treef07a2410b41e9eb8578152a8b1beedd0fac0f793
parentcae6b14377b3925995c472068638f094a9389aaa
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