linux/drivers/memstick/core
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
..
Kconfig
Makefile
memstick.c memstick: Prevent memstick host from getting runtime suspended during card detection 2018-12-17 08:26:24 +01:00
ms_block.c block: genhd: add 'groups' argument to device_add_disk 2018-09-28 08:30:28 -06:00
ms_block.h memstick: trivial fix of spelling mistake on management 2016-04-28 10:58:33 +02:00
mspro_block.c block: genhd: add 'groups' argument to device_add_disk 2018-09-28 08:30:28 -06:00