summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2019-08-08 08:35:40 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-06 10:23:42 +0200
commit096179da39b60858c858fa2c01f3f8af010268f1 (patch)
treef36c3b232a14e3651312d03cda9353ce7837a39d /drivers/mmc
parentcb82fa2d124aa1581428e89150dfe9d077ac5a60 (diff)
downloadlinux-stable-096179da39b60858c858fa2c01f3f8af010268f1.tar.gz
linux-stable-096179da39b60858c858fa2c01f3f8af010268f1.tar.bz2
linux-stable-096179da39b60858c858fa2c01f3f8af010268f1.zip
mmc: sdhci-of-at91: add quirk for broken HS200
commit 7871aa60ae0086fe4626abdf5ed13eeddf306c61 upstream. HS200 is not implemented in the driver, but the controller claims it through caps. Remove it via a quirk, to make sure the mmc core do not try to enable HS200, as it causes the eMMC initialization to fail. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Fixes: bb5f8ea4d514 ("mmc: sdhci-of-at91: introduce driver for the Atmel SDMMC") Cc: stable@vger.kernel.org # v4.4+ Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-of-at91.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-of-at91.c b/drivers/mmc/host/sdhci-of-at91.c
index e377b9bc55a4..d4993582f0f6 100644
--- a/drivers/mmc/host/sdhci-of-at91.c
+++ b/drivers/mmc/host/sdhci-of-at91.c
@@ -357,6 +357,9 @@ static int sdhci_at91_probe(struct platform_device *pdev)
pm_runtime_set_autosuspend_delay(&pdev->dev, 50);
pm_runtime_use_autosuspend(&pdev->dev);
+ /* HS200 is broken at this moment */
+ host->quirks2 = SDHCI_QUIRK2_BROKEN_HS200;
+
ret = sdhci_add_host(host);
if (ret)
goto pm_runtime_disable;