]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mmc: rtsx: Use pm_runtime_{get,put}() to handle runtime PM
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 25 Jan 2022 05:50:06 +0000 (13:50 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:40:21 +0000 (14:40 +0200)
commitf5a074f71c8898f8f231257a162e3d3f74f4b563
tree4ba05133fb7bb46c474804e3605dcefd3a78d5b1
parent2e3794d47d755107a2bd76914c654d215139f40b
mmc: rtsx: Use pm_runtime_{get,put}() to handle runtime PM

BugLink: https://bugs.launchpad.net/bugs/1969110
commit 7499b529d97f752124fa62fefa1d6d44b371215a upstream.

Commit 5b4258f6721f ("misc: rtsx: rts5249 support runtime PM") doesn't
use pm_runtime_{get,put}() helpers when it should, so the RPM refcount
keeps at zero, hence its parent driver, rtsx_pci, has to do lots of
weird tricks to keep it from runtime suspending.

So use those helpers at right places to properly manage runtime PM.

Fixes: 5b4258f6721f ("misc: rtsx: rts5249 support runtime PM")
Cc: Ricky WU <ricky_wu@realtek.com>
Tested-by: Ricky WU <ricky_wu@realtek.com>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20220125055010.1866563-1-kai.heng.feng@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 8ec990990be3b59ce4a7ac5a53432f4c2f79a96d)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/mmc/host/rtsx_pci_sdmmc.c