Linux MultiMedia Card development
 help / color / mirror / Atom feed
* [PATCH] mmc: dwcmshc_bf3_hw_reset: Log eMMC reset calls
@ 2026-06-18 10:53 Satyansh Shukla
  2026-07-01 17:24 ` [External] : " Satyansh Shukla
  2026-07-03 13:41 ` Adrian Hunter
  0 siblings, 2 replies; 4+ messages in thread
From: Satyansh Shukla @ 2026-06-18 10:53 UTC (permalink / raw)
  To: Ulf Hansson; +Cc: Adrian Hunter, linux-mmc, linux-kernel

Log when the BlueField-3 eMMC hardware reset path is invoked and
whether the RST_N SMC call succeeds.

This makes it easier to diagnose cases where the controller recovery path
depends on issuing an eMMC reset, and helps confirm that the reset sequence
was attempted on affected systems.

Signed-off-by: Satyansh Shukla <satyansh.shukla@oracle.com>
---
 drivers/mmc/host/sdhci-of-dwcmshc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mmc/host/sdhci-of-dwcmshc.c b/drivers/mmc/host/sdhci-of-dwcmshc.c
index b9ecd91f44ad..8acd4652a12b 100644
--- a/drivers/mmc/host/sdhci-of-dwcmshc.c
+++ b/drivers/mmc/host/sdhci-of-dwcmshc.c
@@ -2019,10 +2019,13 @@ static void dwcmshc_bf3_hw_reset(struct sdhci_host *host)
 {
 	struct arm_smccc_res res = { 0 };
 
+	pr_info("%s: resetting...\n", __func__);
 	arm_smccc_smc(BLUEFIELD_SMC_SET_EMMC_RST_N, 0, 0, 0, 0, 0, 0, 0, &res);
 
 	if (res.a0)
 		pr_err("%s: RST_N failed.\n", mmc_hostname(host->mmc));
+	else
+		pr_info("%s: RST_N succeeded.\n", mmc_hostname(host->mmc));
 }
 
 static const struct sdhci_ops sdhci_dwcmshc_bf3_ops = {
-- 
2.31.1


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

end of thread, other threads:[~2026-07-06 12:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-18 10:53 [PATCH] mmc: dwcmshc_bf3_hw_reset: Log eMMC reset calls Satyansh Shukla
2026-07-01 17:24 ` [External] : " Satyansh Shukla
2026-07-03 13:41 ` Adrian Hunter
2026-07-06 12:33   ` [PATCH v2] " Satyansh Shukla

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