OSDN Git Service

Revert "Revert "gpio: omap: Fix lost edge wake-up interrupts""
authorTony Lindgren <tony@atomide.com>
Wed, 28 Oct 2020 06:05:56 +0000 (08:05 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 28 Oct 2020 15:40:47 +0000 (16:40 +0100)
commit7ffa08169849be898eed6f3694aab8c425497749
treeaefc3a209adee9ba7999d545fa304b8b83cbc575
parent2f84a2de539cc4301a332c2c76473fc25baf21b7
Revert "Revert "gpio: omap: Fix lost edge wake-up interrupts""

This reverts commit 579ced8fdb00b8e94304a83e3cc419f6f8eab08e.

Turns out I was overly optimistic about cpu_pm blocking idle being a
solution for handling edge interrupts. While it helps in preventing
entering idle states that potentially lose context, we can still get
an edge interrupt triggering while entering idle. So we need to also
add back the workaround for seeing if there are any pending edge
interrupts when waking up.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Keerthy <j-keerthy@ti.com>
Cc: Ladislav Michl <ladis@linux-mips.org>
Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Russell King <rmk+kernel@armlinux.org.uk>
Cc: Tero Kristo <t-kristo@ti.com>
Link: https://lore.kernel.org/r/20201028060556.56038-1-tony@atomide.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c