]> git.hungrycats.org Git - linux/commit
mmc: sdhci-of-esdhc: fix the mmc error after sleep on ls1046ardb
authoryinbo.zhu <yinbo.zhu@nxp.com>
Fri, 1 Dec 2017 07:09:34 +0000 (15:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 14:40:12 +0000 (15:40 +0100)
commitb5d3e87c07505d64631662c2caffcf054c9a13cf
tree7e21f6dca67a856de321ce0c11084fe09c9845d6
parent772b28fb3f5dde45186482c181acb5be861deb83
mmc: sdhci-of-esdhc: fix the mmc error after sleep on ls1046ardb

commit f2bc600008bd6f7f5d0b6b56238d14f95cd454d2 upstream.

When system wakes up from sleep on ls1046ardb, the SD operation fails
with mmc error messages since ESDHC_TB_EN bit couldn't be cleaned by
eSDHC_SYSCTL[RSTA]. It's proper to clean this bit in esdhc_reset()
rather than in probe.

Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
Acked-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-of-esdhc.c