mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mmc: litex_mmc: ensure `host->irq == 0` if polling
@ 2022-11-07 15:55 Gabriel Somlo
  2022-11-09 12:34 ` Ulf Hansson
  0 siblings, 1 reply; 2+ messages in thread
From: Gabriel Somlo @ 2022-11-07 15:55 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-mmc, ulf.hansson, kgugala, mholenko, joel, andy.shevchenko,
	mdudek, paulus

Ensure the flag is explicitly set to 0 if we determine that polling is
needed during driver probe, to cover all possible cases.

Fixes: 92e099104729 ("mmc: Add driver for LiteX's LiteSDCard interface")
Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
---
 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 6ba0d63b8c07..39c6707fdfdb 100644
--- a/drivers/mmc/host/litex_mmc.c
+++ b/drivers/mmc/host/litex_mmc.c
@@ -502,6 +502,7 @@ static int litex_mmc_irq_init(struct platform_device *pdev,
 
 use_polling:
 	host->mmc->caps |= MMC_CAP_NEEDS_POLL;
+	host->irq = 0;
 	return 0;
 }
 
-- 
2.37.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] mmc: litex_mmc: ensure `host->irq == 0` if polling
  2022-11-07 15:55 [PATCH] mmc: litex_mmc: ensure `host->irq == 0` if polling Gabriel Somlo
@ 2022-11-09 12:34 ` Ulf Hansson
  0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2022-11-09 12:34 UTC (permalink / raw)
  To: Gabriel Somlo
  Cc: linux-kernel, linux-mmc, kgugala, mholenko, joel,
	andy.shevchenko, mdudek, paulus

On Mon, 7 Nov 2022 at 16:55, Gabriel Somlo <gsomlo@gmail.com> wrote:
>
> Ensure the flag is explicitly set to 0 if we determine that polling is
> needed during driver probe, to cover all possible cases.
>
> Fixes: 92e099104729 ("mmc: Add driver for LiteX's LiteSDCard interface")
> Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>

Applied for next, 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 6ba0d63b8c07..39c6707fdfdb 100644
> --- a/drivers/mmc/host/litex_mmc.c
> +++ b/drivers/mmc/host/litex_mmc.c
> @@ -502,6 +502,7 @@ static int litex_mmc_irq_init(struct platform_device *pdev,
>
>  use_polling:
>         host->mmc->caps |= MMC_CAP_NEEDS_POLL;
> +       host->irq = 0;
>         return 0;
>  }
>
> --
> 2.37.3
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-09 12:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-07 15:55 [PATCH] mmc: litex_mmc: ensure `host->irq == 0` if polling Gabriel Somlo
2022-11-09 12:34 ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®