summaryrefslogtreecommitdiff
path: root/drivers/clk/renesas/r8a77970-cpg-mssr.c
diff options
context:
space:
mode:
authorKai-Heng Feng <kai.heng.feng@canonical.com>2018-11-05 11:45:06 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2018-12-17 10:26:24 +0300
commit6827ca573c03385439fdfc8b512d556dc7c54fc9 (patch)
tree6569c07a0954abec2a3b2d2ee77641b4d16e576a /drivers/clk/renesas/r8a77970-cpg-mssr.c
parentba9d5f83735fc00297e39ba5cd9ece1c61eb3995 (diff)
downloadlinux-6827ca573c03385439fdfc8b512d556dc7c54fc9.tar.xz
memstick: rtsx_usb_ms: Support runtime power management
In order to let host's parent device, rtsx_usb, to use USB remote wake up signaling to do card detection, it needs to be suspended. Hence it's necessary to add runtime PM support for the memstick host. To keep memstick host stays suspended when it's not in use, convert the card detection function from kthread to delayed_work, which can be scheduled when the host is resumed and can be canceled when the host is suspended. Put the device to suspend when there's no card and the power mode is MEMSTICK_POWER_OFF. Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/clk/renesas/r8a77970-cpg-mssr.c')
0 files changed, 0 insertions, 0 deletions