public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5.10.199] mmc: renesas_sdhi: use custom mask for TMIO_MASK_ALL
@ 2023-10-26 12:18 Geert Uytterhoeven
  2023-10-27 12:15 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2023-10-26 12:18 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Sasha Levin, Wolfram Sang, Ulf Hansson,
	Pavel Machek
  Cc: stable, linux-mmc, linux-renesas-soc, Yoshihiro Shimoda,
	Geert Uytterhoeven

From: Wolfram Sang <wsa+renesas@sang-engineering.com>

[ Upstream commit 9f12cac1bb88e3296990e760d867a98308d6b0ac ]

Populate the new member for custom mask values to make sure this value
is applied whenever needed. Also, rename the define holding the value
because this is not only about initialization anymore.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20210304092903.8534-1-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
[geert: Backport to v5.10.199]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Fixes: 6d3745bbc3341d3b ("mmc: renesas_sdhi: register irqs before registering controller")

 drivers/mmc/host/renesas_sdhi_core.c | 3 ++-
 drivers/mmc/host/tmio_mmc.h          | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/host/renesas_sdhi_core.c b/drivers/mmc/host/renesas_sdhi_core.c
index be4c2a848b52051e..24e524a1b9274168 100644
--- a/drivers/mmc/host/renesas_sdhi_core.c
+++ b/drivers/mmc/host/renesas_sdhi_core.c
@@ -571,7 +571,7 @@ static void renesas_sdhi_reset(struct tmio_mmc_host *host)
 
 	if (host->pdata->flags & TMIO_MMC_MIN_RCAR2)
 		sd_ctrl_write32_as_16_and_16(host, CTL_IRQ_MASK,
-					     TMIO_MASK_INIT_RCAR2);
+					     TMIO_MASK_ALL_RCAR2);
 }
 
 #define SH_MOBILE_SDHI_MIN_TAP_ROW 3
@@ -1012,6 +1012,7 @@ int renesas_sdhi_probe(struct platform_device *pdev,
 		host->ops.start_signal_voltage_switch =
 			renesas_sdhi_start_signal_voltage_switch;
 		host->sdcard_irq_setbit_mask = TMIO_STAT_ALWAYS_SET_27;
+		host->sdcard_irq_mask_all = TMIO_MASK_ALL_RCAR2;
 		host->reset = renesas_sdhi_reset;
 	} else {
 		host->sdcard_irq_mask_all = TMIO_MASK_ALL;
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h
index d6ed5e1f8386e459..330a17267f7eddba 100644
--- a/drivers/mmc/host/tmio_mmc.h
+++ b/drivers/mmc/host/tmio_mmc.h
@@ -97,8 +97,8 @@
 
 /* Define some IRQ masks */
 /* This is the mask used at reset by the chip */
-#define TMIO_MASK_INIT_RCAR2	0x8b7f031d /* Initial value for R-Car Gen2+ */
 #define TMIO_MASK_ALL           0x837f031d
+#define TMIO_MASK_ALL_RCAR2	0x8b7f031d
 #define TMIO_MASK_READOP  (TMIO_STAT_RXRDY | TMIO_STAT_DATAEND)
 #define TMIO_MASK_WRITEOP (TMIO_STAT_TXRQ | TMIO_STAT_DATAEND)
 #define TMIO_MASK_CMD     (TMIO_STAT_CMDRESPEND | TMIO_STAT_CMDTIMEOUT | \
-- 
2.34.1


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

* Re: [PATCH v5.10.199] mmc: renesas_sdhi: use custom mask for TMIO_MASK_ALL
  2023-10-26 12:18 [PATCH v5.10.199] mmc: renesas_sdhi: use custom mask for TMIO_MASK_ALL Geert Uytterhoeven
@ 2023-10-27 12:15 ` Greg Kroah-Hartman
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2023-10-27 12:15 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Sasha Levin, Wolfram Sang, Ulf Hansson, Pavel Machek, stable,
	linux-mmc, linux-renesas-soc, Yoshihiro Shimoda

On Thu, Oct 26, 2023 at 02:18:56PM +0200, Geert Uytterhoeven wrote:
> From: Wolfram Sang <wsa+renesas@sang-engineering.com>
> 
> [ Upstream commit 9f12cac1bb88e3296990e760d867a98308d6b0ac ]
> 
> Populate the new member for custom mask values to make sure this value
> is applied whenever needed. Also, rename the define holding the value
> because this is not only about initialization anymore.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> Link: https://lore.kernel.org/r/20210304092903.8534-1-wsa+renesas@sang-engineering.com
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
> [geert: Backport to v5.10.199]
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> Fixes: 6d3745bbc3341d3b ("mmc: renesas_sdhi: register irqs before registering controller")

Now queued up, thanks.

greg k-h

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

end of thread, other threads:[~2023-10-27 12:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-26 12:18 [PATCH v5.10.199] mmc: renesas_sdhi: use custom mask for TMIO_MASK_ALL Geert Uytterhoeven
2023-10-27 12:15 ` Greg Kroah-Hartman

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