diff options
| author | Luke Wang <[email protected]> | 2025-05-14 09:49:03 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2025-05-19 11:56:49 +0000 |
| commit | 676a83855614635af3bf31ad3f8fec4031f81354 (patch) | |
| tree | eb6e0a63b5ca795a2b7b38613308a14164f1392d /rust/helpers/platform.c | |
| parent | mmc: sdhci: export APIs for sdhci irq wakeup (diff) | |
| download | kernel-676a83855614635af3bf31ad3f8fec4031f81354.tar.gz kernel-676a83855614635af3bf31ad3f8fec4031f81354.zip | |
mmc: host: sdhci-esdhc-imx: refactor the system PM logic
Current suspend/resume logic has one issue. In suspend, will config
register when call sdhci_suspend_host(), but at this time, can't
guarantee host in runtime resume state. If not, the per clock is gate
off, access register will hang.
In sdhci_esdhc_suspend/sdhci_esdhc_resume, remove sdhci_suspend_host()
and sdhci_resume_host(), all are handled in runtime PM callbacks except
the wakeup irq setting. For wakeup irq setting, use pm_runtime_get_sync()
in sdhci_esdhc_suspend() to make sure clock gate on.
Remove pinctrl_pm_select_default_state() in sdhci_esdhc_resume, because
pm_runtime_force_resume() already config the pinctrl state according to
ios timing, and here config the default pinctrl state again is wrong for
SDIO3.0 device if it keep power in suspend.
Signed-off-by: Haibo Chen <[email protected]>
Signed-off-by: Luke Wang <[email protected]>
Acked-by: Adrian Hunter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions
