summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorOskari Lemmela <oskari@lemmela.net>2021-12-22 07:59:58 +0200
committerMark Brown <broonie@kernel.org>2021-12-22 12:43:02 +0000
commitc70282457c380db7deb57c81a6894debc8f88efa (patch)
treec6b00c4982bbd7a370ddc81b661ca7e62a0ea83f /drivers/spi
parent6008cb4c98d935a844edf2f3c13639104f533e30 (diff)
downloadlinux-c70282457c380db7deb57c81a6894debc8f88efa.tar.gz
linux-c70282457c380db7deb57c81a6894debc8f88efa.tar.bz2
linux-c70282457c380db7deb57c81a6894debc8f88efa.zip
spi: ar934x: fix transfer and word delays
Add missing delay between transferred messages and words. Signed-off-by: Oskari Lemmela <oskari@lemmela.net> Link: https://lore.kernel.org/r/20211222055958.1383233-3-oskari@lemmela.net Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-ar934x.c2
1 files changed, 2 insertions, 0 deletions
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: