kernel-fxtec-pro1x/drivers/memstick
Kai-Heng Feng 759e641acd memstick: Prevent memstick host from getting runtime suspended during card detection
[ Upstream commit e03e303edf1c63e6dd455ccd568c74e93ef3ba8c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-12 19:47:10 +01:00
..
core memstick: Prevent memstick host from getting runtime suspended during card detection 2019-02-12 19:47:10 +01:00
host misc: rtsx: Move Realtek Card Reader Driver to misc 2017-11-29 10:16:44 +00:00
Kconfig drivers/memstick: remove depends on CONFIG_EXPERIMENTAL 2013-01-21 14:52:44 -08:00
Makefile memstick: change to new flag variable 2011-03-17 14:05:34 +01:00