]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: rcar: Use wakeup_path i.s.o. explicit clock handling
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 12 Feb 2018 13:55:13 +0000 (14:55 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 5 Mar 2018 08:01:21 +0000 (09:01 +0100)
commit8fa59a05f1bb1c494a5f60dcedd29261704f60f2
treee8445f14bf33090be725e19422e722f23b3b77c6
parent4b7f3cda724036ce118b56470a2e8d51c57d3136
gpio: rcar: Use wakeup_path i.s.o. explicit clock handling

Since commit 0ab8768b3b857f68 ("gpio: rcar: Prevent module clock disable
when wake-up is enabled"), when a GPIO is used for wakeup, the GPIO
block's module clock (if exists) is manually kept running during system
suspend, to make sure the device stays active.

However, this explicit clock handling is merely a workaround for a
failure to properly communicate wakeup information to the device core.

Instead, set the device's power.wakeup_path field, to indicate this
device is part of the wakeup path.  Depending on the PM Domain's
active_wakeup configuration, the genpd core code will keep the device
enabled (and the clock running) during system suspend when needed.
This allows for the removal of all explicit clock handling code from the
driver.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-rcar.c