]> git.ipfire.org Git - people/ms/u-boot.git/commit - drivers/mmc/mmc.c
mmc: add host_caps checking avoid switch card improperly
authorMacpaul Lin <macpaul@andestech.com>
Mon, 28 Nov 2011 16:31:09 +0000 (16:31 +0000)
committerAndy Fleming <afleming@freescale.com>
Mon, 9 Jan 2012 03:28:16 +0000 (21:28 -0600)
commit2c3fbf4cbe621680105c5116b37e863a32ce410d
tree0afeb999498b0e940661ea4b34bdf97297431040
parent4692708d452b054fe5996405ee5cfff1f3b23070
mmc: add host_caps checking avoid switch card improperly

Add a host capability checking to avoid the mmc stack
switch the card to HIGHSPEED mode when the card supports
HIGHSPEED while the host doesn't.

This patch avoid furthur transaction problem when the
mmc/sd card runs different mode to the host.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
drivers/mmc/mmc.c