]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: sdhci-esdhc-imx: fix host version read
authorShawn Guo <shawn.guo@linaro.org>
Tue, 15 Jan 2013 15:30:27 +0000 (23:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:39 +0000 (05:38 -0800)
commit2f98d7620e47046548073bf3029f1af7a0f2d7b0
tree31ed03c3e522e5f01e750ec58c43b37605d8f0f2
parentc3e1d1ac1e2cb9fdb73d88427762358de63bc0ba
mmc: sdhci-esdhc-imx: fix host version read

commit ef4d0888bb7e1b963880f086575081c3d39cad2d upstream.

When commit 95a2482 (mmc: sdhci-esdhc-imx: add basic imx6q usdhc
support) works around host version issue on imx6q, it gets the
register address fixup "reg ^= 2" lost for imx25/35/51/53 esdhc.
Thus, the controller version on these SoCs is wrongly identified
as v1 while it's actually v2.

Add the address fixup back and take a different approach to correct
imx6q host version, so that the host version read gets back to work
for all SoCs.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-esdhc-imx.c