From: Chris Ball Date: Sat, 15 Sep 2012 04:20:00 +0000 (+0800) Subject: mmc: dt: Support "broken-cd" property in sdhci-pltfm X-Git-Tag: next-20120924~61^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6827281b21b5b08b9feb0427d8290f7f6887fe86;p=karo-tx-linux.git mmc: dt: Support "broken-cd" property in sdhci-pltfm Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index d9a4ef4f1ed0..65551a9709cc 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c @@ -75,6 +75,9 @@ void sdhci_get_of_property(struct platform_device *pdev) if (sdhci_of_wp_inverted(np)) host->quirks |= SDHCI_QUIRK_INVERTED_WRITE_PROTECT; + if (of_get_property(np, "broken-cd", NULL)) + host->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION; + if (of_device_is_compatible(np, "fsl,p2020-rev1-esdhc")) host->quirks |= SDHCI_QUIRK_BROKEN_DMA;