public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] refactor the system PM logic for sdhci-esdhc-imx
@ 2024-10-14  6:01 haibo.chen
  2024-10-14  6:01 ` [PATCH 1/4] mmc: sdhci: export APIs for sdhci irq wakeup haibo.chen
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: haibo.chen @ 2024-10-14  6:01 UTC (permalink / raw)
  To: adrian.hunter, ulf.hansson, linux-mmc
  Cc: imx, haibo.chen, shawnguo, s.hauer, kernel, festevam, s32,
	linux-arm-kernel, linux-kernel

From: Haibo Chen <haibo.chen@nxp.com>

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(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-11-15 11:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-14  6:01 [PATCH 0/4] refactor the system PM logic for sdhci-esdhc-imx haibo.chen
2024-10-14  6:01 ` [PATCH 1/4] mmc: sdhci: export APIs for sdhci irq wakeup haibo.chen
2024-10-14  6:01 ` [PATCH 2/4] mmc: host: sdhci-esdhc-imx: refactor the system PM logic haibo.chen
2024-10-17 13:07   ` Ulf Hansson
2024-10-18  1:22     ` Bough Chen
2024-10-18  3:20       ` Bough Chen
2024-10-22  8:28         ` Ulf Hansson
2024-11-07  9:20           ` Bough Chen
2024-11-15 11:16             ` Ulf Hansson
2024-10-14  6:01 ` [PATCH 3/4] mmc: host: sdhci-esdhc-imx: save tuning value for the SDIO card as wakeup source haibo.chen
2024-10-15  2:08   ` kernel test robot
2024-10-14  6:01 ` [PATCH 4/4] mmc: sdhci-esdhc-imx: do not change to sleep pinctrl state in suspend if enable wakeup haibo.chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox