#20949: writing to sdcard on mt7621 causes kernel oops
------------------------+------------------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: kernel | Version: Chaos Calmer 15.05
Resolution: | Keywords: sdio mmc mt7621 ramips
------------------------+------------------------------------
Comment (by anonymous):
This seems to fix it
{{{
diff --git a/target/linux/ramips/patches-3.18/0053-mmc-MIPS-ralink-add-
sdhci-for-mt7620a-SoC.patch b/target/linux/ramips/patches-3.18/0053-mmc-
MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
index 2932eb6..5d09127 100644
--- a/target/linux/ramips/patches-3.18/0053-mmc-MIPS-ralink-add-sdhci-for-
mt7620a-SoC.patch
+++ b/target/linux/ramips/patches-3.18/0053-mmc-MIPS-ralink-add-sdhci-for-
mt7620a-SoC.patch
@@ -1958,7 +1958,7 @@ Signed-off-by: John Crispin <[email protected]>
+ .dat_drv = 4,
+ .data_pins = 4,
+ .data_offset = 0,
-+ .flags = MSDC_SYS_SUSPEND | MSDC_WP_PIN_EN |
MSDC_CD_PIN_EN | MSDC_REMOVABLE | MSDC_HIGHSPEED,
++ .flags = MSDC_SYS_SUSPEND | MSDC_CD_PIN_EN |
MSDC_REMOVABLE | MSDC_HIGHSPEED,
+// .flags = MSDC_SYS_SUSPEND | MSDC_WP_PIN_EN |
MSDC_CD_PIN_EN | MSDC_REMOVABLE,
+};
+
@@ -3907,7 +3907,7 @@ Signed-off-by: John Crispin <[email protected]>
+
+ 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);
+ }
+ }
+
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/20949#comment:2>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets