MMC: Poll card status after rescanning cards
authorTimo Teras <timo.teras@solidboot.com>
Wed, 25 Oct 2006 06:37:41 +0000 (09:37 +0300)
committerPierre Ossman <drzeus@drzeus.cx>
Thu, 9 Nov 2006 06:23:37 +0000 (07:23 +0100)
commit25a122fd0d28b48782b9524a85895573e7ccf304
tree10a43451698a5ddd09b7c4bbd2accfd6efd33737
parent088406bcf66d6c7fd8a5c04c00aa410ae9077403
MMC: Poll card status after rescanning cards

Some broken cards seem to process CMD1 even in stand-by state. The result is
that the card replies with ILLEGAL_COMMAND error for the next command sent
after rescanning. Currently the next command is select card, which would
return the error. But CMD7 does actually succeed and retries of the command
will timeout. The workaround is to poll card status after CMD1 to clear the
pending error.

Signed-off-by: Timo Teras <timo.teras@solidboot.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/mmc.c