aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2016-09-29 14:22:40 +0200
committerZoltan HERPAI <wigyori@uid0.hu>2016-09-29 14:22:40 +0200
commitb5e7d8a212a4b2428ec681964fa7249a984caff1 (patch)
tree1ff386ba56a3c52314ead83ff2e57bd4356afe51 /target
parentb0c59f5629f5378bbe9552e1459787cad6384fef (diff)
downloadupstream-b5e7d8a212a4b2428ec681964fa7249a984caff1.tar.gz
upstream-b5e7d8a212a4b2428ec681964fa7249a984caff1.tar.bz2
upstream-b5e7d8a212a4b2428ec681964fa7249a984caff1.zip
ramips: fix timing issues when using MT7621 spi
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/patches-3.18/0061-SPI-ralink-add-mt7621-SoC-spi-driver.patch5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ramips/patches-3.18/0061-SPI-ralink-add-mt7621-SoC-spi-driver.patch b/target/linux/ramips/patches-3.18/0061-SPI-ralink-add-mt7621-SoC-spi-driver.patch
index b00d36bdd9..4fe9f4c89e 100644
--- a/target/linux/ramips/patches-3.18/0061-SPI-ralink-add-mt7621-SoC-spi-driver.patch
+++ b/target/linux/ramips/patches-3.18/0061-SPI-ralink-add-mt7621-SoC-spi-driver.patch
@@ -25,7 +25,7 @@
obj-$(CONFIG_SPI_OC_TINY) += spi-oc-tiny.o
--- /dev/null
+++ b/drivers/spi/spi-mt7621.c
-@@ -0,0 +1,391 @@
+@@ -0,0 +1,394 @@
+/*
+ * spi-mt7621.c -- MediaTek MT7621 SPI controller driver
+ *
@@ -225,6 +225,9 @@
+ if (!buf)
+ continue;
+
++ if (t->speed_hz < speed)
++ speed = t->speed_hz;
++
+ if (WARN_ON(len + rlen > 36)) {
+ status = -EIO;
+ goto msg_done;