* [PATCH] mmc: meson-gx: Add reset for Response Mode Error Mask (RMEM)
@ 2026-11-20 5:53 Rong Chen via B4 Relay
0 siblings, 0 replies; only message in thread
From: Rong Chen via B4 Relay @ 2026-11-20 5:53 UTC (permalink / raw)
To: Ulf Hansson, Neil Armstrong, Kevin Hilman, Jerome Brunet,
Martin Blumenstingl
Cc: linux-mmc, linux-arm-kernel, linux-amlogic, linux-kernel, Rong Chen
From: Rong Chen <rong.chen@amlogic.com>
For T7 and older SoC families, the RMEM has no effect. Starting from
the SoC family A4, RMEM acts as an interrupt mask for the device status
field received in R1/R1b responses.
By setting RMEM to zero, the device status is ignored, thereby
preventing controller hangs caused by spurious IRQs under specific
device states.
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
---
drivers/mmc/host/meson-gx-mmc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c
index 49df33bbd8e5..9d9b00b199b6 100644
--- a/drivers/mmc/host/meson-gx-mmc.c
+++ b/drivers/mmc/host/meson-gx-mmc.c
@@ -113,6 +113,7 @@
#define SD_EMMC_CMD_RSP1 0x60
#define SD_EMMC_CMD_RSP2 0x64
#define SD_EMMC_CMD_RSP3 0x68
+#define SD_EMMC_CMD_RMEM 0x150
#define SD_EMMC_RXD 0x94
#define SD_EMMC_TXD 0x94
@@ -1086,6 +1087,9 @@ static void meson_mmc_cfg_init(struct meson_host *host)
cfg |= CFG_ERR_ABORT;
writel(cfg, host->regs + SD_EMMC_CFG);
+
+ /* ignore status in response */
+ writel(0x0, host->regs + SD_EMMC_CMD_RMEM);
}
static int meson_mmc_card_busy(struct mmc_host *mmc)
---
base-commit: d2616724e01132376c78872b8324f38659af9f28
change-id: 20261120-a4_mmc-dd4b9b36cb00
Best regards,
--
Rong Chen <rong.chen@amlogic.com>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-20 5:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 5:53 [PATCH] mmc: meson-gx: Add reset for Response Mode Error Mask (RMEM) Rong Chen via B4 Relay
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®