MLK-14774 mmc: sdhci-esdhc-imx: restore pins state after suspend
authorDong Aisheng <aisheng.dong@nxp.com>
Thu, 11 May 2017 12:38:17 +0000 (20:38 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:16 +0000 (15:22 -0500)
commitcab82c3a83bbc0c9180bc04237001423161b3245
tree1259f0ee8dad1cd1fa3ff097ff1ad2cc56420064
parente2d7af7a5b89ea9265824697ddf62cd15d098e08
MLK-14774 mmc: sdhci-esdhc-imx: restore pins state after suspend

After commit 3e3274ab9ff3 ("mmc: sdhci-esdhc-imx: Use common
sdhci_suspend|resume_host()"), we lost the pins state store and save
in common sdhci_pltfm_{suspend|resume} API which results in the
pins state lost in state un-retainable suspend/resume, then
CMD transfer will meet timeout subsequently.

Due to sdhci_pltfm_{suspend|resume} API becomes static after
that commit later, we then do manual pins state save and restore
in our platform suspend/resume API instead.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
drivers/mmc/host/sdhci-esdhc-imx.c