MLK-11397 mmc: sdhci-esdhc-imx: move the setting of watermark level out of probe
authorHaibo Chen <haibo.chen@freescale.com>
Thu, 25 Jun 2015 02:08:46 +0000 (10:08 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:47 +0000 (14:48 -0500)
commitb0e05f18bc6e09bf356d8f4a4029e350d871bae6
tree60d77515b7a553869e3f38668858ac6f60c4dcb0
parent97a587b399d50fcc5a6ade3fe8fcd31231775b39
MLK-11397 mmc: sdhci-esdhc-imx: move the setting of watermark level out of probe

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 move the setting of watermark level register out of probe,
so after system resume back, mmc driver will set back this watermark
level register back to 0x10401040.

Signed-off-by: Haibo Chen <haibo.chen@freescale.com>
(cherry picked from commit 05f72329a3c288e15c2f187305a21815d6bffc6d)

Conflicts:
drivers/mmc/host/sdhci-esdhc-imx.c
drivers/mmc/host/sdhci-esdhc-imx.c