diff --git a/target/linux/rockchip/patches-6.1/037-01-v6.3-mmc-sdhci-of-dwcmshc-enable-host-V4-support-for-BlueField.patch b/target/linux/rockchip/patches-6.1/037-01-v6.3-mmc-sdhci-of-dwcmshc-enable-host-V4-support-for-BlueField.patch new file mode 100644 index 0000000000..6a92a66433 --- /dev/null +++ b/target/linux/rockchip/patches-6.1/037-01-v6.3-mmc-sdhci-of-dwcmshc-enable-host-V4-support-for-BlueField.patch @@ -0,0 +1,32 @@ +From 95921151e04335e9e2ddf4f294405e64be4ea947 Mon Sep 17 00:00:00 2001 +From: Liming Sun +Date: Wed, 11 Jan 2023 13:14:58 -0500 +Subject: [PATCH] mmc: sdhci-of-dwcmshc: enable host V4 support for BlueField-3 + SoC + +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 +Signed-off-by: Liming Sun +Acked-by: Adrian Hunter +Link: https://lore.kernel.org/r/990885f566c32ac8e6888ad6b434fb70d1a5d7af.1673460632.git.limings@nvidia.com +Signed-off-by: Ulf Hansson +--- + drivers/mmc/host/sdhci-of-dwcmshc.c | 5 +++++ + 1 file changed, 5 insertions(+) + +--- 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 + 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); diff --git a/target/linux/rockchip/patches-6.1/037-01-v6.3-mmc-sdhci-of-dwcmshc-Update-DLL-and-pre-change-delay-for.patch b/target/linux/rockchip/patches-6.1/037-02-v6.3-mmc-sdhci-of-dwcmshc-Update-DLL-and-pre-change-delay-for.patch similarity index 100% rename from target/linux/rockchip/patches-6.1/037-01-v6.3-mmc-sdhci-of-dwcmshc-Update-DLL-and-pre-change-delay-for.patch rename to target/linux/rockchip/patches-6.1/037-02-v6.3-mmc-sdhci-of-dwcmshc-Update-DLL-and-pre-change-delay-for.patch diff --git a/target/linux/rockchip/patches-6.1/037-03-v6.3-mmc-sdhci-of-dwcmshc-add-the-missing-device-table-IDs-for.patch b/target/linux/rockchip/patches-6.1/037-03-v6.3-mmc-sdhci-of-dwcmshc-add-the-missing-device-table-IDs-for.patch new file mode 100644 index 0000000000..06d5ba9204 --- /dev/null +++ b/target/linux/rockchip/patches-6.1/037-03-v6.3-mmc-sdhci-of-dwcmshc-add-the-missing-device-table-IDs-for.patch @@ -0,0 +1,27 @@ +From cfd4ea4815d16f7426723a5cb80ee5db811ea1f2 Mon Sep 17 00:00:00 2001 +From: Liming Sun +Date: Thu, 2 Feb 2023 10:29:15 -0500 +Subject: [PATCH] mmc: sdhci-of-dwcmshc: add the missing device table IDs for + acpi + +This commit adds the missing MODULE_DEVICE_TABLE for acpi, or else +it won't be loaded automatically when compiled as a kernel module. + +Reviewed-by: David Thompson +Signed-off-by: Liming Sun +Link: https://lore.kernel.org/r/f57ad0f8fdf663465bca74467c344dfa305a3199.1675305696.git.limings@nvidia.com +Signed-off-by: Ulf Hansson +--- + drivers/mmc/host/sdhci-of-dwcmshc.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/mmc/host/sdhci-of-dwcmshc.c ++++ b/drivers/mmc/host/sdhci-of-dwcmshc.c +@@ -451,6 +451,7 @@ static const struct acpi_device_id sdhci + }, + {} + }; ++MODULE_DEVICE_TABLE(acpi, sdhci_dwcmshc_acpi_ids); + #endif + + static int dwcmshc_probe(struct platform_device *pdev) diff --git a/target/linux/rockchip/patches-6.1/037-02-v6.4-mmc-sdhci-of-dwcmshc-properly-determine-max-clock-on.patch b/target/linux/rockchip/patches-6.1/037-04-v6.4-mmc-sdhci-of-dwcmshc-properly-determine-max-clock-on.patch similarity index 100% rename from target/linux/rockchip/patches-6.1/037-02-v6.4-mmc-sdhci-of-dwcmshc-properly-determine-max-clock-on.patch rename to target/linux/rockchip/patches-6.1/037-04-v6.4-mmc-sdhci-of-dwcmshc-properly-determine-max-clock-on.patch