]> git.baikalelectronics.ru Git - kernel.git/commit
mmc_spi: do not check CID and CSD blocks with CRC16
authorWolfgang Muees <wolfgang.mues@auerswald.de>
Tue, 7 Apr 2009 13:48:16 +0000 (14:48 +0100)
committerPierre Ossman <pierre@ossman.eu>
Wed, 8 Apr 2009 18:37:53 +0000 (20:37 +0200)
commitb44b8013f0843092aafcc7a5107c8f7e5c13a12e
tree42aa05d8091832eb28ee2237e775e8b738af11d4
parent24d898c63dde837202392371aa1b63d331d852f7
mmc_spi: do not check CID and CSD blocks with CRC16

Some cards are not able to calculate a valid CRC16 value
for CID and CSD reads (CRC for 512 byte data blocks is OK).
By moving the CRC enable after the read of CID and CSD, these
cards can be used. This patch was tested with a faulty 8 GByte
takeMS Class 6 SDHC card. This patch was suggested by
Pierre Ossman.

Signed-off-by: Wolfgang Muees <wolfgang.mues@auerswald.de>
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
drivers/mmc/core/sd.c