diff options
author | Micky Ching <micky_ching@realsil.com.cn> | 2014-03-27 13:35:04 +0800 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-04-22 07:06:40 -0400 |
commit | 5027251eced6e34315a52bd841279df957f627bb (patch) | |
tree | 557b428fa842e2ea9768ebaa721748c64a56cbde /drivers/mmc/host | |
parent | 573185cc7e646fdd5da12702ba5383e91cc25ef3 (diff) |
mmc: rtsx: add R1-no-CRC mmc command type handle
a27fbf2f067b0cd ("mmc: add ignorance case for CMD13 CRC error") produced
a cmd.flags unhandled in realtek pci host driver. This will make MMC
card fail to initialize, this patch is used to handle the new cmd.flags
condition and MMC card can be used.
Signed-off-by: Micky Ching <micky_ching@realsil.com.cn>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/rtsx_pci_sdmmc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/rtsx_pci_sdmmc.c b/drivers/mmc/host/rtsx_pci_sdmmc.c index 8c2dd304a7ab..76cfdcc17c47 100644 --- a/drivers/mmc/host/rtsx_pci_sdmmc.c +++ b/drivers/mmc/host/rtsx_pci_sdmmc.c @@ -346,6 +346,9 @@ static void sd_send_cmd(struct realtek_pci_sdmmc *host, struct mmc_command *cmd) case MMC_RSP_R1: rsp_type = SD_RSP_TYPE_R1; break; + case MMC_RSP_R1 & ~MMC_RSP_CRC: + rsp_type = SD_RSP_TYPE_R1 | SD_NO_CHECK_CRC7; + break; case MMC_RSP_R1B: rsp_type = SD_RSP_TYPE_R1b; break; |