mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/1] mci: add the probe parameter if any error happened during the probe
@ 2011-12-05 15:10 Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; only message in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-12-05 15:10 UTC (permalink / raw)
  To: barebox

as example today if the timeout happened we can not probe the SD card again

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 drivers/mci/mci-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index 1da7aff..e9fe87c 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -1380,7 +1380,7 @@ static int mci_probe(struct device_d *mci_dev)
 #ifdef CONFIG_MCI_STARTUP
 	/* if enabled, probe the attached card immediately */
 	rc = mci_card_probe(mci_dev);
-	if (rc == -ENODEV) {
+	if (rc) {
 		/*
 		 * If it fails, add the 'probe' parameter to give the user
 		 * a chance to insert a card and try again. Note: This may fail
-- 
1.7.7


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-12-05 15:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-05 15:10 [PATCH 1/1] mci: add the probe parameter if any error happened during the probe Jean-Christophe PLAGNIOL-VILLARD

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