Commit 125a8390 authored by David Lechner's avatar David Lechner Committed by Mark Brown

spi: axi-spi-engine: implement xfer->cs_change_delay

This adds handling of xfer->cs_change_delay to the AXI SPI Engine
driver.
Signed-off-by: default avatarDavid Lechner <dlechner@baylibre.com>
Acked-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Acked-by: default avatarNuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20231204-axi-spi-engine-series-2-v1-6-063672323fce@baylibre.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent e006c181
...@@ -265,6 +265,10 @@ static void spi_engine_compile_message(struct spi_message *msg, bool dry, ...@@ -265,6 +265,10 @@ static void spi_engine_compile_message(struct spi_message *msg, bool dry,
if (!xfer->cs_off) if (!xfer->cs_off)
spi_engine_gen_cs(p, dry, spi, false); spi_engine_gen_cs(p, dry, spi, false);
spi_engine_gen_sleep(p, dry, spi_delay_to_ns(
&xfer->cs_change_delay, xfer),
xfer->effective_speed_hz);
if (!list_next_entry(xfer, transfer_list)->cs_off) if (!list_next_entry(xfer, transfer_list)->cs_off)
spi_engine_gen_cs(p, dry, spi, true); spi_engine_gen_cs(p, dry, spi, true);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment