2023-01-11 18:34:05

by Liming Sun

[permalink] [raw]
Subject: [PATCH v1 1/1] 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 <[email protected]>
Signed-off-by: Liming Sun <[email protected]>
---
drivers/mmc/host/sdhci-of-dwcmshc.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c
index a7343d4bc50e..49338670c89f 100644
--- 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);
--
2.30.1


2023-01-13 12:32:52

by Adrian Hunter

[permalink] [raw]
Subject: Re: [PATCH v1 1/1] mmc: sdhci-of-dwcmshc: enable host V4 support for BlueField-3 SoC

On 11/01/23 20:14, Liming Sun wrote:
> 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 <[email protected]>
> Signed-off-by: Liming Sun <[email protected]>

Acked-by: Adrian Hunter <[email protected]>

> ---
> drivers/mmc/host/sdhci-of-dwcmshc.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c
> index a7343d4bc50e..49338670c89f 100644
> --- 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);

2023-01-16 13:05:22

by Ulf Hansson

[permalink] [raw]
Subject: Re: [PATCH v1 1/1] mmc: sdhci-of-dwcmshc: enable host V4 support for BlueField-3 SoC

On Wed, 11 Jan 2023 at 19:15, Liming Sun <[email protected]> wrote:
>
> 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 <[email protected]>
> Signed-off-by: Liming Sun <[email protected]>

Applied for next, thanks!

Kind regards
Uffe


> ---
> drivers/mmc/host/sdhci-of-dwcmshc.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c
> index a7343d4bc50e..49338670c89f 100644
> --- 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);
> --
> 2.30.1
>