]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
gpio: gpio-omap: limit errata 1.101 handling to wkup domain gpios only
authorTony Lindgren <tony@atomide.com>
Mon, 25 Mar 2019 22:43:16 +0000 (15:43 -0700)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 27 Mar 2019 13:25:37 +0000 (14:25 +0100)
commit21e2118f470302f16bee7ebd1444505eadbc2c20
tree18c8455fc27d89a44e0efbfe56ba4cd1d15f2c85
parentc78c42d77165791c8198d7a86d1989ba65cf73a8
gpio: gpio-omap: limit errata 1.101 handling to wkup domain gpios only

We need to only apply errata 1.101 handling to clear non-wakeup edge gpios
for idle to the gpio bank(s) in the wkup domain to prevent spurious wake-up
events.

And we must restore what we did after idle manually as the gpio bank in
wkup domain is not restored otherwise.

Let's keep bank->saved_datain register reading separate, that's not related
to the 1.101 errata and is used separately on restore.

Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Keerthy <j-keerthy@ti.com>
Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Russell King <rmk+kernel@armlinux.org.uk>
Cc: Tero Kristo <t-kristo@ti.com>
Reported-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-omap.c