From b7b422bbd95928b213444692d5b00ef081160c0b Mon Sep 17 00:00:00 2001 From: Liming Sun Date: Sat, 10 Dec 2022 13:55:54 -0500 Subject: [PATCH backport 6.1.42 66/85] UBUNTU: SAUCE: sdhci-of-dwcmshc: Enable host V4 support for BlueField-3 SoC BugLink: https://bugs.launchpad.net/bugs/1999309 This commit enables SDHCI Host V4 support on Bluefield-3 SoC to be consistent with UEFI setting. Signed-off-by: Liming Sun Acked-by: Tim Gardner Acked-by: Bartlomiej Zolnierkiewicz [bzolnier: use a short URL version for BugLink] Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/mmc/host/sdhci-of-dwcmshc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c index a7343d4bc50e..a1188508e75d 100644 --- a/drivers/mmc/host/sdhci-of-dwcmshc.c +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c @@ -528,6 +528,12 @@ static int dwcmshc_probe(struct platform_device *pdev) goto err_clk; } +#ifdef CONFIG_ACPI + if (pltfm_data == &sdhci_dwcmshc_bf3_pdata) { + sdhci_enable_v4_mode(host); + } +#endif + host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY; err = sdhci_setup_host(host); -- 2.20.1