[OpenWrt-Devel] [PATCH] ramips: enable work-arounds to fix sdhci on mt7621

Daniel Golle daniel at makrotopia.org
Tue Jan 12 22:15:32 EST 2016


Enable work-arounds present in the code commented-out but needed to
write to sdcard on mt7621 which currently causes kernel to oops when
engaging in serious writing to sdcard.
With this change applied, there are still occasional warnings thrown
by the mmc driver, however, at least it no longer crashes the system
and even large writes (full-card dump/erase/write/compare) don't show
any corruption.

Fixes #20949

Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
diff --git a/target/linux/ramips/patches-4.3/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch b/target/linux/ramips/patches-4.3/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
index dac572f..498e902 100644
--- a/target/linux/ramips/patches-4.3/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
+++ b/target/linux/ramips/patches-4.3/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
@@ -3932,7 +3932,7 @@ index 0000000..d240b46
 +
 +    if (msdc_do_request(mmc,mrq)) {  	
 +        if(host->hw->flags & MSDC_REMOVABLE && mrq->data && mrq->data->error) {
-+            //msdc_tune_request(mmc,mrq);                                    	
++            msdc_tune_request(mmc,mrq);
 +        }        	
 +    }
 +
-- 
2.7.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list