]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: fix the condition for MMC version 4
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 4 Jul 2011 22:13:26 +0000 (22:13 +0000)
committerAndy Fleming <afleming@freescale.com>
Sat, 16 Jul 2011 01:29:20 +0000 (20:29 -0500)
commit639b7827d1caf28801775e222fe1d1dedece58f0
treea92087d67ebd6d0bb5b415bb1662dc29cb436276
parente75787d903e75095806f42f793328940656ea783
mmc: fix the condition for MMC version 4

Fix the problem that if we use the chip of MMC version 4 and
the capacity is smaller than 2GB or equal, the mmc->capacity is
invalid. According to the JEDEC Standard, the value of ext_csd's
capacity is valid if the value is more than 2GB.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Andy Fleming <afleming@freescale.com>
drivers/mmc/mmc.c