• Geert Uytterhoeven's avatar
    gpio: rcar: Add Runtime PM handling for interrupts · b26a719b
    Geert Uytterhoeven authored
    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: d5c3d846 "net: phy: Avoid polling PHY with PHY_IGNORE_INTERRUPTS"
    Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    b26a719b
gpio-rcar.c 14.1 KB