[RFC PATCH 3/5] ath79: ar934x: fix SPI driver delays
Oskari Lemmela
oskari at lemmela.net
Sun Dec 26 10:41:24 PST 2021
Backport ar934x SPI driver delay fixes
Signed-off-by: Oskari Lemmela <oskari at lemmela.net>
---
...-ar934x-fix-transfer-and-word-delays.patch | 30 +++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 target/linux/ath79/patches-5.10/401-spi-ar934x-fix-transfer-and-word-delays.patch
diff --git a/target/linux/ath79/patches-5.10/401-spi-ar934x-fix-transfer-and-word-delays.patch b/target/linux/ath79/patches-5.10/401-spi-ar934x-fix-transfer-and-word-delays.patch
new file mode 100644
index 0000000000..dff4d42917
--- /dev/null
+++ b/target/linux/ath79/patches-5.10/401-spi-ar934x-fix-transfer-and-word-delays.patch
@@ -0,0 +1,30 @@
+From dfd61c0d211c16418812d784dcfb825f40dd12ad Mon Sep 17 00:00:00 2001
+From: Oskari Lemmela <oskari at lemmela.net>
+Date: Tue, 30 Nov 2021 19:55:52 +0200
+Subject: [PATCH] spi: ar934x: fix transfer and word delays
+
+Add missing delay between transferred messages and words.
+
+Signed-off-by: Oskari Lemmela <oskari at lemmela.net>
+---
+ drivers/spi/spi-ar934x.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/drivers/spi/spi-ar934x.c b/drivers/spi/spi-ar934x.c
+index def32e0aaefe..e1b64e35900c 100644
+--- a/drivers/spi/spi-ar934x.c
++++ b/drivers/spi/spi-ar934x.c
+@@ -137,8 +137,10 @@ static int ar934x_spi_transfer_one_message(struct spi_controller *master,
+ reg >>= 8;
+ }
+ }
++ spi_delay_exec(&t->word_delay, t);
+ }
+ m->actual_length += t->len;
++ spi_transfer_delay_exec(t);
+ }
+
+ msg_done:
+--
+2.25.1
+
--
2.25.1
More information about the openwrt-devel
mailing list