mmc: sdhci-omap: Fix context restore
authorTony Lindgren <tony@atomide.com>
Tue, 21 Sep 2021 11:00:26 +0000 (14:00 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Oct 2021 08:21:18 +0000 (10:21 +0200)
commitd806e334d0390502cd2a820ad33d65d7f9bba618
treee7a266ebb4171f0b61db1b3a3c7dc03c267307d9
parent8e0e7bd38b1ec7f9e5d18725ad41828be4e09859
mmc: sdhci-omap: Fix context restore

We need to restore context in a specified order with HCTL set in two
phases. This is similar to what omap_hsmmc_context_restore() is doing.
Otherwise SDIO can stop working on resume.

And for PM runtime and SDIO cards, we need to also save SYSCTL, IE and
ISE.

This should not be a problem currently, and these patches can be applied
whenever suitable.

Fixes: ee0f309263a6 ("mmc: sdhci-omap: Add Support for Suspend/Resume")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20210921110029.21944-3-tony@atomide.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-omap.c