kernel-ark/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
debugfs.c
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_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
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
sdio_irq.c
sdio_ops.c
sdio_ops.h
sdio.c