diff mbox series

mmc: litex_mmc: set PROBE_PREFER_ASYNCHRONOUS

Message ID 20230617085319.2139-1-jszhang@kernel.org (mailing list archive)
State New, archived
Headers show
Series mmc: litex_mmc: set PROBE_PREFER_ASYNCHRONOUS | expand

Commit Message

Jisheng Zhang June 17, 2023, 8:53 a.m. UTC
mmc host drivers should have enabled the asynchronous probe option, but
it seems like we didn't set it for litex_mmc when introducing litex mmc
support, so let's set it now.

Tested with linux-on-litex-vexriscv on sipeed tang nano 20K fpga.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
---
 drivers/mmc/host/litex_mmc.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Gabriel L. Somlo June 17, 2023, 6:14 p.m. UTC | #1
On Sat, Jun 17, 2023 at 04:53:19PM +0800, Jisheng Zhang wrote:
> mmc host drivers should have enabled the asynchronous probe option, but
> it seems like we didn't set it for litex_mmc when introducing litex mmc
> support, so let's set it now.
> 
> Tested with linux-on-litex-vexriscv on sipeed tang nano 20K fpga.
> 
> Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
> ---

Acked-by: Gabriel Somlo <gsomlo@gmail.com>

Thanks!

>  drivers/mmc/host/litex_mmc.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mmc/host/litex_mmc.c b/drivers/mmc/host/litex_mmc.c
> index 39c6707fdfdb..9af6b0902efe 100644
> --- a/drivers/mmc/host/litex_mmc.c
> +++ b/drivers/mmc/host/litex_mmc.c
> @@ -649,6 +649,7 @@ static struct platform_driver litex_mmc_driver = {
>  	.driver = {
>  		.name = "litex-mmc",
>  		.of_match_table = litex_match,
> +		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
>  	},
>  };
>  module_platform_driver(litex_mmc_driver);
> -- 
> 2.40.1
>
Ulf Hansson June 19, 2023, 11:43 a.m. UTC | #2
On Sat, 17 Jun 2023 at 11:04, Jisheng Zhang <jszhang@kernel.org> wrote:
>
> mmc host drivers should have enabled the asynchronous probe option, but
> it seems like we didn't set it for litex_mmc when introducing litex mmc
> support, so let's set it now.
>
> Tested with linux-on-litex-vexriscv on sipeed tang nano 20K fpga.
>
> Signed-off-by: Jisheng Zhang <jszhang@kernel.org>

Applied for fixes, by adding both a fixes and a stable tag, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/host/litex_mmc.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mmc/host/litex_mmc.c b/drivers/mmc/host/litex_mmc.c
> index 39c6707fdfdb..9af6b0902efe 100644
> --- a/drivers/mmc/host/litex_mmc.c
> +++ b/drivers/mmc/host/litex_mmc.c
> @@ -649,6 +649,7 @@ static struct platform_driver litex_mmc_driver = {
>         .driver = {
>                 .name = "litex-mmc",
>                 .of_match_table = litex_match,
> +               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
>         },
>  };
>  module_platform_driver(litex_mmc_driver);
> --
> 2.40.1
>
diff mbox series

Patch

diff --git a/drivers/mmc/host/litex_mmc.c b/drivers/mmc/host/litex_mmc.c
index 39c6707fdfdb..9af6b0902efe 100644
--- a/drivers/mmc/host/litex_mmc.c
+++ b/drivers/mmc/host/litex_mmc.c
@@ -649,6 +649,7 @@  static struct platform_driver litex_mmc_driver = {
 	.driver = {
 		.name = "litex-mmc",
 		.of_match_table = litex_match,
+		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
 	},
 };
 module_platform_driver(litex_mmc_driver);