summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-ar934x.c
diff options
context:
space:
mode:
authorOskari Lemmela <oskari@lemmela.net>2021-12-22 06:59:58 +0100
committerMark Brown <broonie@kernel.org>2021-12-22 13:43:02 +0100
commitc70282457c380db7deb57c81a6894debc8f88efa (patch)
treec6b00c4982bbd7a370ddc81b661ca7e62a0ea83f /drivers/spi/spi-ar934x.c
parentspi: spi-mtk-nor: add new clock name 'axi' for spi nor (diff)
downloadlinux-c70282457c380db7deb57c81a6894debc8f88efa.tar.xz
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/spi-ar934x.c')
-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: