1
linux/drivers/mmc
Terry Barnaby bdbc5d0c60 mmc: atmel-mci: pio hang on block errors
The driver is doing, by default, multi-block reads. When a block error
occurs, card/block.c instigates a single block read: "mmcblk0: retrying
using single block read".  It leaves the sg chain intact and just changes
the length attribute for the first sg entry and the overall sg_len
parameter.  When atmci_read_data_pio is called to read the single block
of data it ignores the sg_len and expects to read more than 512 bytes as
it sees there are multiple items in the sg list. No more data comes as
the controller has only been commanded to get one block.

Signed-off-by: Terry Barnaby <terry@beam.ltd.uk>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Cc: stable <stable@vger.kernel.org> # 3.2+
Signed-off-by: Chris Ball <cjb@laptop.org>
2013-04-08 12:05:47 -04:00
..
card mmc: block: fix the host's claim-release in special request 2013-03-22 13:29:36 -04:00
core mmc: core: Fix bit width test failing on old eMMC cards 2013-04-04 15:33:29 -04:00
host mmc: atmel-mci: pio hang on block errors 2013-04-08 12:05:47 -04:00
Kconfig
Makefile