mmc: sdhci-of-esdhc: fix esdhc_reset() for different controller versions
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 8 Jan 2020 04:07:12 +0000 (12:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:50:16 +0000 (10:50 +0200)
commite0ae9da3fb2fed45fdd437cea6c597044c02dc47
treeeadd0e3341b92c578e80c0aefc20689a43c7adb1
parent7661469ef56e15c2c32fa4b7be126a6b91e265a5
mmc: sdhci-of-esdhc: fix esdhc_reset() for different controller versions

commit 2aa3d826adb578b26629a79b775a552cfe3fedf7 upstream.

This patch is to fix operating in esdhc_reset() for different
controller versions, and to add bus-width restoring after data
reset for eSDHC (verdor version <= 2.2).

Also add annotation for understanding.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20200108040713.38888-1-yangbo.lu@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-of-esdhc.c