summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@freescale.com>2015-06-11 06:57:53 (GMT)
committerZhengxiong Jin <Jason.Jin@freescale.com>2015-06-11 13:46:20 (GMT)
commitd217d96c2adf4779890e5f6bb2a7c6515e308dc7 (patch)
tree3ba8d5396c2b30ca7858745a115b5765bd31aa56
parent75493029a3da1926cbfb79c589fc3c2ba9ae1069 (diff)
downloadlinux-fsl-qoriq-d217d96c2adf4779890e5f6bb2a7c6515e308dc7.tar.xz
mmc: sdhci-pltfm: enable interrupt mode to detect card
Enable interrupt mode to detect card instead of polling mode for ls1021a by removing the quirk SDHCI_QUIRK_BROKEN_CARD_DETECTION. This could improve data transferring performance and avoid the call trace caused by polling card status sometime. Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com> Change-Id: Id965cd89b16f3f4d8327f1ca3d7ba9ed146e7a44 Reviewed-on: http://git.am.freescale.net:8181/37819 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Xiaobo Xie <X.Xie@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
-rw-r--r--drivers/mmc/host/sdhci-pltfm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index 5c7c168..c1a37a6 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -112,7 +112,8 @@ void sdhci_get_of_property(struct platform_device *pdev)
of_device_is_compatible(np, "fsl,p5020-esdhc") ||
of_device_is_compatible(np, "fsl,p4080-esdhc") ||
of_device_is_compatible(np, "fsl,t1040-esdhc") ||
- of_device_is_compatible(np, "fsl,p1020-esdhc"))
+ of_device_is_compatible(np, "fsl,p1020-esdhc") ||
+ of_device_is_compatible(np, "fsl,ls1021a-esdhc"))
host->quirks &= ~SDHCI_QUIRK_BROKEN_CARD_DETECTION;
clk = of_get_property(np, "clock-frequency", &size);