1. 28 6月, 2013 1 次提交
    • S
      mmc: sdhci: improve card removal check in sdhci_card_event() · 9668d765
      Shawn Guo 提交于
      The following error randomly appears on an imx6q board where gpio is
      used to implement card-detection when mounting EXT4 rootfs during boot.
      
      mmc1: Card removed during transfer!
      mmc1: Resetting controller.
      mmcblk0: unknown error -123 sending read/write command, card status 0x900
      end_request: I/O error, dev mmcblk0, sector 106744
      EXT4-fs error (device mmcblk0p2): ext4_find_entry:1312: inode #5011: comm swapper/0: reading directory lblock 0
      
      It turns out that the error message comes from the card removal check
      in function sdhci_card_event().  While we have a well implemented
      function sdhci_do_get_cd() handling all the possible cases of
      CD, the current code only checks controller internal CD case.  That
      causes problem for other CD cases like gpio on above imx6q board.
      
      Improve the check by using sdhci_do_get_cd() to cover all possible CD
      cases, so that above error on the imx6q board gets fixed.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NChris Ball <cjb@laptop.org>
      9668d765
  2. 27 5月, 2013 1 次提交
  3. 23 3月, 2013 2 次提交
  4. 25 2月, 2013 5 次提交
  5. 12 2月, 2013 4 次提交
  6. 28 1月, 2013 4 次提交
  7. 08 12月, 2012 1 次提交
  8. 07 12月, 2012 4 次提交
  9. 08 11月, 2012 3 次提交
  10. 08 10月, 2012 1 次提交
  11. 19 9月, 2012 1 次提交
    • G
      mmc: sdhci: Test cd-gpio instead of SDHCI presence when probing · bec9d4e5
      Guennadi Liakhovetski 提交于
      Previously to this patch, an SDHCI platform that uses a GPIO for
      card detection instead of the internal SDHCI_CARD_PRESENT bit on
      the presence register would fail to detect a new card.
      
      Some drivers worked around this in various ways: esdhc-imx defines
      an IO accessor to fake the presence bit being true, s3c turns on
      polling (which stops the SDHCI driver from checking the bit) after
      a card's inserted.  But none of this should be necessary; the real
      fix is to check whether we're using a GPIO and avoid relying on
      the presence bit if so, as this patch implements.
      Signed-off-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
      Signed-off-by: NChris Ball <cjb@laptop.org>
      bec9d4e5
  12. 05 9月, 2012 2 次提交
  13. 23 7月, 2012 8 次提交
  14. 21 7月, 2012 3 次提交