[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241014060130.1162629-1-haibo.chen@nxp.com>
Date: Mon, 14 Oct 2024 14:01:26 +0800
From: haibo.chen@....com
To: adrian.hunter@...el.com,
ulf.hansson@...aro.org,
linux-mmc@...r.kernel.org
Cc: imx@...ts.linux.dev,
haibo.chen@....com,
shawnguo@...nel.org,
s.hauer@...gutronix.de,
kernel@...gutronix.de,
festevam@...il.com,
s32@....com,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 0/4] refactor the system PM logic for sdhci-esdhc-imx
From: Haibo Chen <haibo.chen@....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
Powered by blists - more mailing lists