[PATCH 1/1] mci: add the probe parameter if any error happened during the probe

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Mon Dec 5 10:10:36 EST 2011


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

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at 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




More information about the barebox mailing list