mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
ramips: fix timing issues when using MT7621 spi
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
b0c59f5629
commit
b5e7d8a212
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user