Skip to contentSkip to conversation

mmc: dt: Support "broken-cd" property in sdhci-pltfm

PATCH New Chris Ball 1 participant 1 message Sep 19, 2012

Subsystems (2)
lore
Share & tools
lore

Chris Ball

author
#0 lore raw

PATCH 1/1 mmc: dt: Support "broken-cd" property in sdhci-pltfm

As (currently) used by sdhci-pxav3.

---
 drivers/mmc/host/sdhci-pltfm.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/mmc/host/sdhci-pltfm.c +3 -0
index d9a4ef4..65551a9 100644
@@ -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;
 
Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child