gpio: gpio-omap: add check for off wake capable gpios
authorTony Lindgren <tony@atomide.com>
Mon, 25 Mar 2019 22:43:18 +0000 (15:43 -0700)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 27 Mar 2019 13:26:14 +0000 (14:26 +0100)
commitda38ef3ed10a09248e13ae16530c2c6d448dc47d
treea25646dead13b31c69829f204ffe69d3a09f3375
parent06dce84ec76bef5698acc498b76457e585b9efda
gpio: gpio-omap: add check for off wake capable gpios

We are currently assuming all GPIOs are non-wakeup capable GPIOs as we
not configuring the bank->non_wakeup_gpios like we used to earlier with
platform_data.

Let's add omap_gpio_is_off_wakeup_capable() to make the handling clearer
while considering that later patches may want to configure SoC specific
bank->non_wakeup_gpios for the GPIOs in wakeup domain.

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