diff mbox

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

Message ID 20160113031527.GA6408@makrotopia.org
State Deferred
Delegated to: John Crispin
Headers show

Commit Message

Daniel Golle Jan. 13, 2016, 3:15 a.m. UTC
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@makrotopia.org>
---
diff mbox

Patch

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);
 +        }        	
 +    }
 +