]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: mxcmmc: fix SD cards not being detected sometimes.
authorJavier Martin <javier.martin@vista-silicon.com>
Tue, 30 Oct 2012 15:54:07 +0000 (16:54 +0100)
committerChris Ball <cjb@laptop.org>
Wed, 7 Nov 2012 20:40:56 +0000 (15:40 -0500)
commitca899f4450dbf2cf14891c777d01d96146b6ecef
treea60965e8fa1f1670ab949d9df7d36c8f72fcd82a
parent531e743569098091749abad3a12f2bcf22c56b03
mmc: mxcmmc: fix SD cards not being detected sometimes.

When a SD card is initialized some data transfers of 64 and 8 bytes
are issued. It seems the DMA has some problems dealing with these kind
of "short" transfers, leading sometimes to the SD card not being detected.

In order to solve this problem, do not use DMA for transfer sizes lower
than the sector size.

Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/mxcmmc.c