2021-03-25 01:33:24

by Jisheng Zhang

[permalink] [raw]
Subject: [PATCH] mmc: sdhci-of-dwcmshc: set MMC_CAP_WAIT_WHILE_BUSY

The host supports HW busy detection of the device busy signaling over
dat0 line. Set MMC_CAP_wAIT_WHILE_BUSY host capability.

Signed-off-by: Jisheng Zhang <[email protected]>
---
drivers/mmc/host/sdhci-of-dwcmshc.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c
index 06873686d5e9..b6ceb1b92b3f 100644
--- a/drivers/mmc/host/sdhci-of-dwcmshc.c
+++ b/drivers/mmc/host/sdhci-of-dwcmshc.c
@@ -393,6 +393,8 @@ static int dwcmshc_probe(struct platform_device *pdev)
goto err_clk;
}

+ host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY;
+
err = sdhci_add_host(host);
if (err)
goto err_clk;
--
2.31.0


2021-03-25 02:49:13

by Ulf Hansson

[permalink] [raw]
Subject: Re: [PATCH] mmc: sdhci-of-dwcmshc: set MMC_CAP_WAIT_WHILE_BUSY

On Wed, 24 Mar 2021 at 08:47, Jisheng Zhang <[email protected]> wrote:
>
> The host supports HW busy detection of the device busy signaling over
> dat0 line. Set MMC_CAP_wAIT_WHILE_BUSY host capability.
>
> Signed-off-by: Jisheng Zhang <[email protected]>

Applied for next, thanks!

Kind regards
Uffe


> ---
> drivers/mmc/host/sdhci-of-dwcmshc.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c
> index 06873686d5e9..b6ceb1b92b3f 100644
> --- a/drivers/mmc/host/sdhci-of-dwcmshc.c
> +++ b/drivers/mmc/host/sdhci-of-dwcmshc.c
> @@ -393,6 +393,8 @@ static int dwcmshc_probe(struct platform_device *pdev)
> goto err_clk;
> }
>
> + host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY;
> +
> err = sdhci_add_host(host);
> if (err)
> goto err_clk;
> --
> 2.31.0
>