]> git.karo-electronics.de Git - linux-beck.git/commit
gpio: rcar: Add Runtime PM handling for interrupts
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 18 Feb 2016 16:06:30 +0000 (17:06 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 25 Feb 2016 14:46:27 +0000 (15:46 +0100)
commitb26a719bdba9aa926ceaadecc66e07623d2b8a53
tree29a30de2900801d3720d5a9024179ff9c520131e
parent81f70ba233d5f660e1ea5fe23260ee323af5d53a
gpio: rcar: Add Runtime PM handling for interrupts

The R-Car GPIO driver handles Runtime PM for requested GPIOs only.

When using a GPIO purely as an interrupt source, no Runtime PM handling
is done, and the GPIO module's clock may not be enabled.

To fix this:
  - Add .irq_request_resources() and .irq_release_resources() callbacks
    to handle Runtime PM when an interrupt is requested,
  - Add irq_bus_lock() and sync_unlock() callbacks to handle Runtime PM
    when e.g. disabling/enabling an interrupt, or configuring the
    interrupt type.

Fixes: d5c3d84657db57bd "net: phy: Avoid polling PHY with PHY_IGNORE_INTERRUPTS"
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-rcar.c