mmc: rtsx: Let MMC core handle runtime PM
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Wed, 16 Feb 2022 05:54:31 +0000 (13:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Feb 2022 07:41:06 +0000 (08:41 +0100)
commit7570fb41e450ba37bf9335fe3751fa9f502c30fa
tree59c6ddb75f78b2b225cd62fd27b5d7ebf221f463
parent4c49300d8e676702cc097784007bf11735821d6d
mmc: rtsx: Let MMC core handle runtime PM

Since MMC core handles runtime PM reference counting, we can avoid doing
redundant runtime PM work in the driver. That means the only thing
commit 5b4258f6721f ("misc: rtsx: rts5249 support runtime PM") misses is
to always enable runtime PM, to let its parent driver enable ASPM in the
runtime idle routine.

Fixes: 7499b529d97f ("mmc: rtsx: Use pm_runtime_{get,put}() to handle runtime PM")
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20220216055435.2335297-1-kai.heng.feng@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/rtsx_pci_sdmmc.c