Skip to content
  1. Jun 12, 2012
    • Paul Walmsley's avatar
      mmc: use really long write timeout to deal with crappy cards · 872a8ff7
      Paul Walmsley authored
      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: default avatarPaul Walmsley <paul@pwsan.com>
      Tested-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarChris Ball <cjb@laptop.org>
      872a8ff7
    • Subhash Jadavani's avatar
      mmc: sd: Handle SD3.0 cards not supporting UHS-I bus speed mode · 8d7c5395
      Subhash Jadavani authored
      
      
      Here is Essential conditions to indicate Version 3.00 Card
      (SD_SPEC=2 and SD_SPEC3=1) :
      (1) The card shall support CMD6
      (2) The card shall support CMD8
      (3) The card shall support CMD42
      (4) User area capacity shall be up to 2GB (SDSC) or 32GB (SDHC)
          User area capacity shall be more than or equal to 32GB and
          up to 2TB (SDXC)
      (5) Speed Class shall be supported (SDHC or SDXC)
      
      So even if SD card doesn't support any of the newly defined
      UHS-I bus speed mode, it can advertise itself as SD3.0 cards
      as long as it supports all the essential conditions of
      SD3.0 cards. Given this, these type of cards should atleast
      run in High Speed mode @50MHZ if it supports HS.
      
      But current initialization sequence for SD3.0 cards is
      such that these non-UHS-I SD3.0 cards runs in Default
      Speed mode @25MHz.
      
      This patch makes sure that these non-UHS-I SD3.0 cards run
      in High Speed Mode @50MHz.
      
      Tested this patch with SanDisk Extreme SDHC 8GB Class 10 card.
      
      Reported-by: default avatar"Hiremath, Vaibhav" <hvaibhav@ti.com>
      Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
      Signed-off-by: default avatarChris Ball <cjb@laptop.org>
      8d7c5395
  2. Jun 10, 2012
  3. Jun 06, 2012
  4. May 31, 2012
  5. May 30, 2012
  6. May 29, 2012
  7. May 28, 2012
  8. May 26, 2012
  9. May 17, 2012
  10. May 16, 2012
  11. May 15, 2012
  12. May 09, 2012
  13. May 08, 2012
  14. May 07, 2012
  15. May 06, 2012
  16. May 03, 2012
  17. Apr 30, 2012
  18. Apr 27, 2012
  19. Apr 17, 2012
  20. Apr 16, 2012
  21. Apr 12, 2012
  22. Apr 04, 2012
  23. Mar 30, 2012
  24. Mar 29, 2012