mmc: omap_hsmmc: set dto to 14 for all devices sz_beta3
authorChase Maupin <Chase.Maupin@ti.com>
Thu, 1 Mar 2012 17:26:20 +0000 (11:26 -0600)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 3 Apr 2012 21:00:40 +0000 (00:00 +0300)
commit7eed7cc3f0f4f3118d0f83e2fd8f05742b0b402c
tree8a9a3024192efd1581910adeddc39183705e3008
parente920ca0861f0b314abd6dd1662850ef636406c92
mmc: omap_hsmmc: set dto to 14 for all devices

* 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: Chase Maupin <Chase.Maupin@ti.com>
drivers/mmc/host/omap_hsmmc.c