mmc: block: add fixup of broken CMD23 for Sandisk card
authorYangbo Lu <yangbo.lu@freescale.com>
Fri, 10 Jul 2015 03:44:03 +0000 (11:44 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Aug 2015 09:32:47 +0000 (11:32 +0200)
commit7d70d476d0112b44bf93747934ff089c50549e6d
treeedac906f75f33b52a59da0e62965f4f020423cb8
parent67b589a2ebe3f9705e8a70275cedec78447f803a
mmc: block: add fixup of broken CMD23 for Sandisk card

Some Sandisk cards(such as "SDMB-32" and "SDM032" cards)
can't support CMD23, and would generate CMD timeout. So add
FIX-UP for these two types Sandisk cards.

Error log:
mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400900
mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400900
mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400900
end_request: I/O error, dev mmcblk0, sector 0
Buffer I/O error on device mmcblk0, logical block 0
mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400900

Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/card/block.c