Skip to content

Commit fed23c5

Browse files
ehristevstorulf
authored andcommitted
mmc: sdhci-of-at91: fix quirk2 overwrite
The quirks2 are parsed and set (e.g. from DT) before the quirk for broken HS200 is set in the driver. The driver needs to enable just this flag, not rewrite the whole quirk set. Fixes: 7871aa6 ("mmc: sdhci-of-at91: add quirk for broken HS200") Signed-off-by: Eugen Hristev <[email protected]> Acked-by: Adrian Hunter <[email protected]> Cc: [email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 31f4f5b commit fed23c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/sdhci-of-at91.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ static int sdhci_at91_probe(struct platform_device *pdev)
358358
pm_runtime_use_autosuspend(&pdev->dev);
359359

360360
/* HS200 is broken at this moment */
361-
host->quirks2 = SDHCI_QUIRK2_BROKEN_HS200;
361+
host->quirks2 |= SDHCI_QUIRK2_BROKEN_HS200;
362362

363363
ret = sdhci_add_host(host);
364364
if (ret)

0 commit comments

Comments
 (0)