#20387: regression in uboot-sunxi causing boot failure.
-----------------------+------------------------
Reporter: yousong | Owner: developers
Type: defect | Status: new
Priority: high | Milestone:
Component: packages | Version: Trunk
Resolution: | Keywords:
-----------------------+------------------------
Comment (by yousong):
Below is the change for ignoring failure of switching to highspeed mode.
{{{
From fc331c5bf1cd2d9d08d2cdb88e9dcc03596a1460 Mon Sep 17 00:00:00 2001
From: Yousong Zhou <[email protected]>
Date: Sun, 30 Aug 2015 15:21:49 +0800
Subject: [PATCH] mmc: continue on failing switching to highspeed mode.
Signed-off-by: Yousong Zhou <[email protected]>
---
drivers/mmc/mmc.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 79e6fee..6055ff4 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -944,8 +944,10 @@ retry_scr:
err = sd_switch(mmc, SD_SWITCH_SWITCH, 0, 1, (u8 *)switch_status);
- if (err)
- return err;
+ if (err) {
+ printf("unable to switch SD_HIGHSPEED: %d\n", err);
+ return 0;
+ }
if ((__be32_to_cpu(switch_status[4]) & 0x0f000000) == 0x01000000)
mmc->card_caps |= MMC_MODE_HS;
--
1.7.10.4
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/20387#comment:3>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets