Skip to content

refactor the system PM logic for sdhci-esdhc-imx

[email protected] imx linux-arm-kernel linux-mmc lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mmc: sdhci: export APIs for sdhci irq wakeupdrivers/mmc/host/sdhci.c drivers/mmc/host/sdhci.h+6 -20 replies
2/4mmc: host: sdhci-esdhc-imx: refactor the system PM logicdrivers/mmc/host/sdhci-esdhc-imx.c+19 -206 replies
3/4mmc: host: sdhci-esdhc-imx: save tuning value for the SDIO card as wakeup sourcedrivers/mmc/host/sdhci-esdhc-imx.c+91 -30 replies
4/4mmc: sdhci-esdhc-imx: do not change to sleep pinctrl state in suspend if enable wakeupdrivers/mmc/host/sdhci-esdhc-imx.c+13 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] refactor the system PM logic for sdhci-esdhc-imx

From: Haibo Chen <[email protected]>

Currently, if SD slot do not insert any SD card, system suspend/resume will hung, because in system suspend, there is register access, but the usdhc per clock is gate off since it is in runtime suspend state.

This patch set refactor the system PM logic, try to merge PM callback sdhci_esdhc_suspend/sdhci_esdhc_resume into runtiem PM callback sdhci_esdhc_runtime_suspend/sdhci_esdhc_runtime_resume, and use pm_runtime_force_suspend/resume instead. To support SDIO wakeup, add this pm_runtime_force_suspend/resume in no irq stage.

Haibo Chen (4):
mmc: sdhci: export APIs for sdhci irq wakeup
mmc: host: sdhci-esdhc-imx: refactor the system PM logic
mmc: host: sdhci-esdhc-imx: save tuning value for the SDIO card as
wakeup source
mmc: sdhci-esdhc-imx: do not change to sleep pinctrl state in suspend
if enable wakeup

 drivers/mmc/host/sdhci-esdhc-imx.c | 145 ++++++++++++++++++++++++-----
 drivers/mmc/host/sdhci.c           |   6 +-
 drivers/mmc/host/sdhci.h           |   2 +
 3 files changed, 127 insertions(+), 26 deletions(-)
Signature · 1 line
2.34.1