summaryrefslogtreecommitdiffstats
path: root/drivers/memstick/core/ms_block.c
diff options
context:
space:
mode:
authorKai-Heng Feng2018-11-05 09:45:04 +0100
committerUlf Hansson2018-12-17 08:26:24 +0100
commite03e303edf1c63e6dd455ccd568c74e93ef3ba8c (patch)
tree2c4b60c638744b26bf4456569b7c0e597833a5f5 /drivers/memstick/core/ms_block.c
parentmisc: rtsx_usb: Use USB remote wakeup signaling for card insertion detection (diff)
downloadkernel-qcow2-linux-e03e303edf1c63e6dd455ccd568c74e93ef3ba8c.tar.gz
kernel-qcow2-linux-e03e303edf1c63e6dd455ccd568c74e93ef3ba8c.tar.xz
kernel-qcow2-linux-e03e303edf1c63e6dd455ccd568c74e93ef3ba8c.zip
memstick: Prevent memstick host from getting runtime suspended during card detection
We can use MEMSTICK_POWER_{ON,OFF} along with pm_runtime_{get,put} helpers to let memstick host support runtime pm. The rpm count may go down to zero before the memstick host powers on, so the host can be runtime suspended. So before doing card detection, increment the rpm count to avoid the host gets runtime suspended. Balance the rpm count after card detection is done. 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/memstick/core/ms_block.c')
0 files changed, 0 insertions, 0 deletions