mmc: sdhci-esdhc-imx: restore watermark level setting after resume
authorDong Aisheng <aisheng.dong@nxp.com>
Tue, 12 Jul 2016 07:46:13 +0000 (15:46 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:53 +0000 (10:34 +0200)
commitcc17e1294b8aeb3596485b3b8a68419cf3f6ab69
treebb7a752266482d7f3249b556467523b5b7e24058
parent04143fbaeb579983fcc96f8e1c186e1512984b51
mmc: sdhci-esdhc-imx: restore watermark level setting after resume

Currently, we config the watermark_level register only in probe.
This will cause the mmc write operation timeout issue after system
resume back in LPSR mode. Because in LPSR mode, after system resume
back, the watermark_level register(0x44) changes to 0x08000880, which
set the write watermark level as 0, and set the read watermark level
as 128. This value is incorrect.

This patch restores the setting of watermark level register after
system resume back.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c