[SRU][PATCH 0/5][OEM-5.17][RESEND] Add proper runtime PM support to Realtek PCIe cardreader

Aaron Ma aaron.ma at canonical.com
Wed Aug 17 05:39:26 UTC 2022


BugLink: https://bugs.launchpad.net/bugs/1963615

[Impact]
New generations of Realtek PCIe card reader cannot detect card insertion
when the device is in PCI D3.

[Fix]
Rework the runtime PM flow and add chip specific support.

[Test]
With the series applied, the device can detect card insertion when it's
in PCI D3.

[Where problems could occur]
System wide power management with less usage like hibernation, kexec
reboot, etc. are not tested extensively. So these cases may be affected.

Resend for OEM-5.17.
MMC patches were already merged by stable update.

Kai-Heng Feng (3):
  misc: rtsx: Rework runtime power management flow
  misc: rtsx: Cleanup power management ops
  misc: rtsx: Quiesce rts5249 on system suspend

Ricky WU (1):
  misc: rtsx: rts522a rts5228 rts5261 support Runtime PM

Tom Rix (1):
  misc: rtsx: conditionally build rtsx_pm_power_saving()

 drivers/misc/cardreader/rtl8411.c  |   2 +-
 drivers/misc/cardreader/rts5209.c  |   2 +-
 drivers/misc/cardreader/rts5227.c  |  47 ++++++
 drivers/misc/cardreader/rts5228.c  |  23 ++-
 drivers/misc/cardreader/rts5229.c  |   2 +-
 drivers/misc/cardreader/rts5249.c  |  31 +++-
 drivers/misc/cardreader/rts5261.c  |  35 ++++-
 drivers/misc/cardreader/rtsx_pcr.c | 228 +++++++++++------------------
 drivers/misc/cardreader/rtsx_pcr.h |   3 +
 include/linux/rtsx_pci.h           |   5 +-
 10 files changed, 220 insertions(+), 158 deletions(-)

-- 
2.34.1




More information about the kernel-team mailing list