]> 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)
committerChris Ball <cjb@laptop.org>
Mon, 11 Feb 2013 18:29:01 +0000 (13:29 -0500)
commit9f494d4b9000bc64fae4b2541408507ce6792a36
tree9b6ce04697d823f784219c73f9991a91053e531c
parent07fa8da1e4f02b2bf9d7da3897cda3d5859034bf
mmc: sdhci-esdhc-imx: fix host version read

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-esdhc-imx.c