Skip to content
Snippets Groups Projects
  1. Feb 15, 2012
    • Jan Kloetzke's avatar
      mmc: fix card busy polling · 93ad0d18
      Jan Kloetzke authored
      
      A MMC/SD card may always go into the programming state (and hence be
      busy) after a block write. Therefore always check the card state, even
      after single block writes. On the other hand there is no need to check
      the card status after a read.
      
      Also make sure that errors during busy polling are propagated upwards.
      
      Signed-off-by: default avatarJan Kloetzke <jan.kloetzke@dspg.com>
      Cc: Andy Fleming <afleming@gmail.com>
      93ad0d18
    • Tom Warren's avatar
      Tegra: mmc: Fixed handling of interrupts in timeouts. · cf39cf55
      Tom Warren authored
      
      We are seeing occasional timeouts in the Tegra mmc code when
      we are reading from external MMC cards. These don't seem to be
      detrimental if they are handled properly.  This CL properly
      clears the "normal interrupt status register" (norintsts) in
      error conditions.  If we don't do this, when we come back into
      mmc_send_cmd() the register will still contain status from the
      last transaction.
      
      Signed-off-by: default avatarDoug Anderson <dianders@chromium.org>
      Signed-off-by: default avatarTom Warren <twarren@nvidia.com>
      cf39cf55
    • Tom Rini's avatar
      omap_hsmmc: Wait for CMDI to be clear · a7778f8f
      Tom Rini authored
      
      Before we can send a command we need both the DATI (command inhibit on
      mmc_dat line) bit and CMDI (command inhibit on mmc_cmd line) are clear.
      The previous behavior of only checking on DATI was insufficient on some
      cards and incorrect behavior in any case.  This makes the code check
      for both bits being clear and makes the error print more clear as
      to what happened.  DATI_CMDDIS is removed as it was unused elsewhere
      in the code and stood for 'DATI is set, cmds are disabled still'.
      
      Fix originally spotted by Peter Bigot.
      
      Tested-by: default avatarPeter A. Bigot <bigotp@acm.org>
      Tested-by: default avatarRobert Nelson <robertcnelson@gmail.com>
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      Tested-by: default avatarAndreas Müller <schnitzeltony@googlemail.com>
      a7778f8f
  2. Feb 12, 2012
Loading