linux/drivers/mmc/core
Paul Walmsley 3bdc9ba892 mmc: use really long write timeout to deal with crappy cards
Several people have noticed that crappy SD cards take much longer to
complete multiple block writes than the 300ms that Linux specifies.
Try to work around this by using a three second write timeout instead.

This is a generalized version of a patch from Chase Maupin
<Chase.Maupin@ti.com>, whose patch description said:

* With certain SD cards timeouts like the following have been seen
  due to an improper calculation of the dto value:
    mmcblk0: error -110 transferring data, sector 4126233, nr 8,
    card status 0xc00
* By removing the dto calculation and setting the timeout value
  to the maximum specified by the SD card specification part A2
  section 2.2.15 these timeouts can be avoided.
* This change has been used by beagleboard users as well as the
  Texas Instruments SDK without a negative impact.
* There are multiple discussion threads about this but the most
  relevant ones are:
    * http://talk.maemo.org/showthread.php?p=1000707#post1000707
    * http://www.mail-archive.com/linux-omap@vger.kernel.org/msg42213.html
* Original proposal for this fix was done by Sukumar Ghoral of
  Texas Instruments
* Tested using a Texas Instruments AM335x EVM

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
2012-04-05 20:32:34 -04:00
..
bus.c mmc: bus: print bus speed mode of UHS-I card 2012-04-05 20:32:26 -04:00
bus.h
cd-gpio.c mmc: simplify mmc_cd_gpio_request() by removing two parameters 2012-03-27 12:20:14 -04:00
core.c mmc: use really long write timeout to deal with crappy cards 2012-04-05 20:32:34 -04:00
core.h Autogenerated GPG tag for Rusty D1ADB8F1: 15EE 8D6C AB0E 7F0C F999 BFCB D920 0E6C D1AD B8F1 2012-01-14 12:32:16 -08:00
debugfs.c mmc: core: HS200 mode support for eMMC 4.5 2012-01-12 15:17:15 -05:00
host.c mmc: start removing enable / disable API 2012-03-27 12:20:03 -04:00
host.h mmc: start removing enable / disable API 2012-03-27 12:20:03 -04:00
Kconfig
Makefile mmc: add a generic GPIO card-detect helper 2012-01-11 23:58:45 -05:00
mmc_ops.c mmc: core: warn when card doesn't support HPI 2012-03-27 12:20:12 -04:00
mmc_ops.h
mmc.c mmc: core: fix power class selection 2012-04-05 20:32:31 -04:00
quirks.c
sd_ops.c
sd_ops.h
sd.c mmc: core: Fixup suspend/resume issues for UHS-I cards 2012-03-04 12:25:15 -05:00
sd.h
sdio_bus.c mmc: sdio: Use empty system suspend/resume callbacks at the bus level 2012-04-05 20:32:26 -04:00
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c mmc: sdio: Fix to support any block size optimally 2012-01-11 23:58:40 -05:00
sdio_irq.c mmc: core: Ensure clocks are always enabled before host interaction 2012-02-13 20:38:58 -05:00
sdio_ops.c mmc: sdio: Fix to support any block size optimally 2012-01-11 23:58:40 -05:00
sdio_ops.h
sdio.c mmc: core: Fixup suspend/resume issues for UHS-I cards 2012-03-04 12:25:15 -05:00