mmc: make mmc_send_status() more reliable
authorJan Kloetzke <jan.kloetzke@dspg.com>
Sun, 5 Feb 2012 22:29:12 +0000 (22:29 +0000)
committernotaz <notasas@gmail.com>
Thu, 29 Oct 2015 22:38:00 +0000 (00:38 +0200)
commit2c6d7dc57ad470dce326575e11dacfdb101f46a6
tree2b0896d5a646853e27da57f7dfd7321149f759a5
parent024c443df66c98a0525da8aa481057cd4ab77a19
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