Skip to content

Commit 38ca724

Browse files
committed
mmc: dt: Support "broken-cd" property in sdhci-pltfm
Signed-off-by: Chris Ball <cjb@laptop.org>
1 parent 5feb54a commit 38ca724

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/mmc/host/sdhci-pltfm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ void sdhci_get_of_property(struct platform_device *pdev)
7575
if (sdhci_of_wp_inverted(np))
7676
host->quirks |= SDHCI_QUIRK_INVERTED_WRITE_PROTECT;
7777

78+
if (of_get_property(np, "broken-cd", NULL))
79+
host->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION;
80+
7881
if (of_device_is_compatible(np, "fsl,p2020-rev1-esdhc"))
7982
host->quirks |= SDHCI_QUIRK_BROKEN_DMA;
8083

0 commit comments

Comments
 (0)