aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorAndrew Yong <me@ndoo.sg>2016-11-21 15:14:16 +0800
committerJohn Crispin <john@phrozen.org>2016-11-21 12:31:39 +0100
commit605cab749e04d836bc6756c1e11e895406a3eef3 (patch)
tree477f8c37674e5a2a43f95ec17ff954b58b097c02 /target/linux
parent320d8fa3bc0f04f255fda8a23cc9ec1486f8a96a (diff)
downloadupstream-605cab749e04d836bc6756c1e11e895406a3eef3.tar.gz
upstream-605cab749e04d836bc6756c1e11e895406a3eef3.tar.bz2
upstream-605cab749e04d836bc6756c1e11e895406a3eef3.zip
ramips: Fix sdhci kernel panics on MT7621
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. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Rebase to LEDE and added "CONFIG_SOC_MT7621" check to ensure non-MT7621 devices do not face performance regressions. Signed-off-by: Andrew Yong <me@ndoo.sg>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/patches-4.4/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/patches-4.4/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch b/target/linux/ramips/patches-4.4/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
index b36c77c78b..348b563c0c 100644
--- a/target/linux/ramips/patches-4.4/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
+++ b/target/linux/ramips/patches-4.4/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
@@ -3906,8 +3906,8 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ host->mrq = mrq;
+
+ if (msdc_do_request(mmc,mrq)) {
-+ if(host->hw->flags & MSDC_REMOVABLE && mrq->data && mrq->data->error) {
-+ //msdc_tune_request(mmc,mrq);
++ if(host->hw->flags & MSDC_REMOVABLE && CONFIG_SOC_MT7621 && mrq->data && mrq->data->error) {
++ msdc_tune_request(mmc,mrq);
+ }
+ }
+