]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mms: sdhci-sprd: add SDHCI_QUIRK_BROKEN_CARD_DETECTION
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Wed, 28 Aug 2019 02:17:35 +0000 (10:17 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 30 Aug 2019 07:17:53 +0000 (09:17 +0200)
sprd's sd host controller doesn't support detection to
card insert or remove.

Fixes: 5cf40ad0d64b ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller")
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Signed-off-by: Chunyan Zhang <zhang.lyra@gmail.com>
Reviewed-by: Baolin Wang <baolin.wang@linaro.org>
Tested-by: Baolin Wang <baolin.wang@linaro.org>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-sprd.c

index 130b75d3796630fd3ae5612794fcbacd2d2719b2..ba777f0c77d1203807883a42238a5e3c2bc209d3 100644 (file)
@@ -508,7 +508,8 @@ static void sdhci_sprd_phy_param_parse(struct sdhci_sprd_host *sprd_host,
 }
 
 static const struct sdhci_pltfm_data sdhci_sprd_pdata = {
-       .quirks = SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK,
+       .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION |
+                 SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK,
        .quirks2 = SDHCI_QUIRK2_BROKEN_HS200 |
                   SDHCI_QUIRK2_USE_32BIT_BLK_CNT |
                   SDHCI_QUIRK2_PRESET_VALUE_BROKEN,