]> git.ipfire.org Git - people/ms/u-boot.git/commit - drivers/mmc/mmc.c
mmc: make mmc_send_status() more reliable
authorJan Kloetzke <jan.kloetzke@dspg.com>
Sun, 5 Feb 2012 22:29:12 +0000 (22:29 +0000)
committerAndy Fleming <afleming@freescale.com>
Wed, 15 Feb 2012 23:42:22 +0000 (17:42 -0600)
commitd617c426a6ef8d731da1936bca7649a1574d5420
tree44cd0587b8624692b62b478279bce1f5948fdbaa
parent93ad0d18c0ff1fb0a141bdfe66c76b7d4f922619
mmc: make mmc_send_status() more reliable

Align the card status polling with the Linux kernel and retry the
command at least five times. Also some cards apparently mishandle the
status bits, so make sure to check the card state too.

Signed-off-by: Jan Kloetzke <jan.kloetzke@dspg.com>
Cc: Andy Fleming <afleming@gmail.com>
drivers/mmc/mmc.c
include/mmc.h