mmc: fix card busy polling
authorJan Kloetzke <jan.kloetzke@dspg.com>
Sun, 5 Feb 2012 22:29:11 +0000 (22:29 +0000)
committernotaz <notasas@gmail.com>
Thu, 29 Oct 2015 22:34:55 +0000 (00:34 +0200)
commit024c443df66c98a0525da8aa481057cd4ab77a19
tree31550722dd546b1cb7a4a2614ccaf0add6a7caca
parent6e234716647900b6b55e7376afe51633ff6be664
mmc: fix card busy polling

A MMC/SD card may always go into the programming state (and hence be
busy) after a block write. Therefore always check the card state, even
after single block writes. On the other hand there is no need to check
the card status after a read.

Also make sure that errors during busy polling are propagated upwards.

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