Linux MultiMedia Card development
 help / color / mirror / Atom feed
* [RFC PATCH 1/2] mmc: Update sdhci tune function to return errors
@ 2025-01-27 22:36 Erick Shepherd
  2025-01-27 22:36 ` [RFC PATCH 2/2] mmc: Allow tuning to be skipped during card init Erick Shepherd
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Erick Shepherd @ 2025-01-27 22:36 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-mmc, york.yang, ulf.hansson, Erick Shepherd

Updates the sdhci_execute_tuning function to return the error code
that was returned by the __sdhci_execute_tuning function.
Previously this code was only stored in host->tuning_err and not
actually returned.

Signed-off-by: Erick Shepherd <erick.shepherd@ni.com>
---
 drivers/mmc/host/sdhci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index f4a7733a8ad2..b35b8917fa1e 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -2967,7 +2967,8 @@ int sdhci_execute_tuning(struct mmc_host *mmc, u32 opcode)
 
 	sdhci_start_tuning(host);
 
-	host->tuning_err = __sdhci_execute_tuning(host, opcode);
+	err = __sdhci_execute_tuning(host, opcode);
+	host->tuning_err = err;
 
 	sdhci_end_tuning(host);
 out:
-- 
2.43.0


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

end of thread, other threads:[~2025-02-06 23:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-27 22:36 [RFC PATCH 1/2] mmc: Update sdhci tune function to return errors Erick Shepherd
2025-01-27 22:36 ` [RFC PATCH 2/2] mmc: Allow tuning to be skipped during card init Erick Shepherd
2025-01-28 16:04   ` Judith Mendez
2025-01-28 22:20     ` Erick Shepherd
2025-02-03 13:49   ` Ulf Hansson
2025-02-03 13:42 ` [RFC PATCH 1/2] mmc: Update sdhci tune function to return errors Ulf Hansson
2025-02-06 21:07   ` Erick Shepherd
2025-02-06 23:53 ` Judith Mendez

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