projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
681b959
)
mmc: sdhci-of-dwcmshc: enable host V4 support for BlueField-3 SoC
author
Liming Sun
<limings@nvidia.com>
Wed, 11 Jan 2023 18:14:58 +0000
(13:14 -0500)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 23 Jan 2023 14:51:39 +0000
(15:51 +0100)
This commit enables SDHCI Host V4 support on Bluefield-3 SoC to be
consistent with the default setting in firmware(UEFI).
Reviewed-by: David Woods <davwoods@nvidia.com>
Signed-off-by: Liming Sun <limings@nvidia.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link:
https://lore.kernel.org/r/990885f566c32ac8e6888ad6b434fb70d1a5d7af.1673460632.git.limings@nvidia.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-dwcmshc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/sdhci-of-dwcmshc.c
b/drivers/mmc/host/sdhci-of-dwcmshc.c
index
a7343d4
..
4933867
100644
(file)
--- a/
drivers/mmc/host/sdhci-of-dwcmshc.c
+++ b/
drivers/mmc/host/sdhci-of-dwcmshc.c
@@
-528,6
+528,11
@@
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);