1. 25 2月, 2013 1 次提交
  2. 14 2月, 2013 1 次提交
    • W
      mfd: rtsx: Fix issue that booting OS with SD card inserted · c3481955
      Wei WANG 提交于
      Realtek card reader supports both SD and MS card. According to the
      settings of rtsx MFD driver, SD host will be probed before MS host.
      If we boot/reboot Linux with SD card inserted, the resetting flow of SD
      card will succeed, and the following resetting flow of MS is sure to fail.
      Then MS upper-level driver will ask rtsx driver to turn power off. This
      request leads to the result that the following SD commands fail and SD card
      can't be accessed again.
      
      In this commit, Realtek's SD and MS host driver will check whether the card
      that upper driver requesting is the one existing in the slot. If not, Realtek's
      host driver will refuse the operation to make sure the exlusive accessing
      at the same time.
      Signed-off-by: NWei WANG <wei_wang@realsil.com.cn>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      c3481955
  3. 27 1月, 2013 1 次提交
  4. 21 11月, 2012 2 次提交
    • W
      mmc: rtsx: Explicitely include slab.h in rtsx_pci_sdmmc.c · 433e075c
      Wei WANG 提交于
      This fixes the following build error on some architectures (parisc at least):
      
      drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sd_normal_rw':
      drivers/mmc/host/rtsx_pci_sdmmc.c:448:2: error: implicit
      declaration of function 'kzalloc'
      [-Werror=implicit-function-declaration]
      drivers/mmc/host/rtsx_pci_sdmmc.c:448:6: warning: assignment
      makes pointer from integer without a cast [enabled by default]
      drivers/mmc/host/rtsx_pci_sdmmc.c:472:2: error: implicit
      declaration of function 'kfree'
      [-Werror=implicit-function-declaration]
      Signed-off-by: NWei WANG <wei_wang@realsil.com.cn>
      Acked-by: NChris Ball <cjb@laptop.org>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      433e075c
    • W
      mmc: rtsx: Configure SD_CFG2 register in sd_rw_multi · 38d324df
      Wei WANG 提交于
      For Realtek card reader, internal regsiter SD_CFG2 should be configured
      before transferring data.
      The default value of SD_CFG2 is proper for writing data. But for reading
      sequence, the timing is not good enough. So in some extreme circumstance,
      card reader may sample the response data from the card as good even if
      the data is wrong. And this will cause the bad consequence.
      In the prior version, the value of this register has been calculated,
      but forgotten to write back to the internal register.
      Signed-off-by: NWei WANG <wei_wang@realsil.com.cn>
      Acked-by: NChris Ball <cjb@laptop.org>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      38d324df
  5. 20 11月, 2012 1 次提交
  6. 16 11月, 2012 1 次提交
  7. 08 11月, 2012 1 次提交