OSDN Git Service

mmc: core: Introduce MMC_CAP_SYNC_RUNTIME_PM
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 31 May 2018 09:40:38 +0000 (11:40 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commit7d5ef512575663695cf85f3aeb985a0aeb03e364
tree15d6c56f139560369547e1a6f724879734be824d
parenta89e7bcb18081c611eb6cf50edd440fa4983a71a
mmc: core: Introduce MMC_CAP_SYNC_RUNTIME_PM

To allow mmc host drivers to inform the mmc core about rather using
pm_runtime_put_sync_suspend() instead of pm_runtime_put_autosuspend(),
let's introduce MMC_CAP_SYNC_RUNTIME_PM.

This is especially useful for those mmc host drivers that don't benefit
from using the runtime PM autosuspend feature. Typically this is those that
relies on parent devices to power the card via runtime PM, like some USB
host drivers for example.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
drivers/mmc/core/core.c
include/linux/mmc/host.h