Geert Uytterhoeven 65194cb174 gpio: rcar: Fine-grained Runtime PM support
Currently gpio modules are runtime-resumed at probe time. This means the
gpio module will be active all the time (except during system suspend,
if not configured as a wake-up source).

While an R-Car Gen2 gpio module retains pins configured for output at
the requested level while put in standby mode, gpio registercannot be
accessed while suspended.  Unfortunately pm_runtime_get_sync() cannot be
called from all contexts where gpio register access is needed. Hence
move the Runtime PM handling from probe/remove time to gpio request/free
time, which is probably the best we can do.

On r8a7791/koelsch, gpio modules 0, 1, 3, and 4 are now suspended during
normal use (gpio2 is used for LEDs and regulators, gpio5 for keys, gpio6
for SD-Card CD & WP, gpio7 for keys and regulators).

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-07-16 10:42:44 +02:00
..
2015-03-17 17:45:59 +01:00
2014-12-14 16:10:09 -08:00
2015-05-13 10:02:12 +02:00
2015-06-10 09:11:10 +02:00
2015-06-16 11:00:06 +02:00
2015-05-06 15:33:48 +02:00
2015-06-16 11:00:06 +02:00
2015-05-05 17:50:07 +02:00
2015-05-06 15:33:48 +02:00
2015-05-06 15:33:48 +02:00
2015-05-06 15:33:48 +02:00
2015-01-22 09:45:24 +01:00
2014-12-14 16:10:09 -08:00