public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] mmc: it's safe to ignore mmc_send_if_cond() return value
@ 2009-05-14 10:03 Ilya Yanok
  2009-05-14 14:48 ` alfred steele
  2009-06-03 22:15 ` Wolfgang Denk
  0 siblings, 2 replies; 13+ messages in thread
From: Ilya Yanok @ 2009-05-14 10:03 UTC (permalink / raw)
  To: u-boot

Return value of mmc_send_if_cond() can be safely ignored (as it is
done in Linux). This makes older cards work with MXC MCI controller.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
---
 drivers/mmc/mmc.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 925f863..64a311d 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -868,10 +868,6 @@ int mmc_init(struct mmc *mmc)
 	/* Test for SD version 2 */
 	err = mmc_send_if_cond(mmc);
 
-	/* If we got an error other than timeout, we bail */
-	if (err && err != TIMEOUT)
-		return err;
-
 	/* Now try to get the SD card's operating condition */
 	err = sd_send_op_cond(mmc);
 
-- 
1.6.0.6

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

end of thread, other threads:[~2009-06-04  9:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-14 10:03 [U-Boot] [PATCH] mmc: it's safe to ignore mmc_send_if_cond() return value Ilya Yanok
2009-05-14 14:48 ` alfred steele
2009-05-14 18:06   ` Ilya Yanok
2009-05-14 20:24     ` alfred steele
2009-05-14 20:43       ` alfred steele
2009-05-14 21:08         ` Ilya Yanok
2009-05-14 22:37           ` alfred steele
2009-05-14 23:04             ` Ilya Yanok
2009-05-15 16:06               ` alfred steele
2009-05-15 21:15                 ` Ilya Yanok
2009-06-03 22:15 ` Wolfgang Denk
2009-06-03 23:57   ` Andy Fleming
2009-06-04  9:02     ` Wolfgang Denk

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