diff options
author | Kai-Heng Feng <kai.heng.feng@canonical.com> | 2018-11-05 09:45:06 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2018-12-17 08:26:24 +0100 |
commit | 6827ca573c03385439fdfc8b512d556dc7c54fc9 (patch) | |
tree | 6569c07a0954abec2a3b2d2ee77641b4d16e576a /drivers/mmc/host/sdhci-of-esdhc.c | |
parent | memstick: rtsx_usb_ms: Use ms_dev() helper (diff) | |
download | linux-6827ca573c03385439fdfc8b512d556dc7c54fc9.tar.xz linux-6827ca573c03385439fdfc8b512d556dc7c54fc9.zip |
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/mmc/host/sdhci-of-esdhc.c')
0 files changed, 0 insertions, 0 deletions