mbox series

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

Message ID 20220817053931.1400579-1-aaron.ma@canonical.com
Headers show
Series Add proper runtime PM support to Realtek PCIe cardreader | expand

Message

Aaron Ma Aug. 17, 2022, 5:39 a.m. UTC
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(-)

Comments

Timo Aaltonen Aug. 22, 2022, 8:51 a.m. UTC | #1
Aaron Ma kirjoitti 17.8.2022 klo 8.39:
> 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(-)
> 

applied to oem-5.17, thanks