linux_dsm_epyc7002/drivers/memstick
Kai-Heng Feng e03e303edf 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>
2018-12-17 08:26:24 +01:00
..
core memstick: Prevent memstick host from getting runtime suspended during card detection 2018-12-17 08:26:24 +01:00
host memstick: rtsx_usb_ms: Add missing pm_runtime_disable() in probe function 2018-12-17 08:26:24 +01:00
Kconfig
Makefile