]> git.karo-electronics.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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Mar 2013 03:24:13 +0000 (03:24 +0000)
commite3efb0af9406a25d27c03407c288b187c95e8244
tree1485b87dd59ae50bf8cac3c4a0d7985f46826144
parent2b82b58d6d1a3c79e28ce80c559a442e3d034b1a
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: Ben Hutchings <ben@decadent.org.uk>
drivers/mmc/host/sdhci-esdhc-imx.c