spi: axi-spi-engine: don't repeat mode config for offload
authorDavid Lechner <dlechner@baylibre.com>
Mon, 28 Apr 2025 20:58:57 +0000 (15:58 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 30 Apr 2025 00:38:38 +0000 (09:38 +0900)
commit8fc13b822c74a46587c0d8aae4ea0820b6bdb933
treef0fb540d98e3e272efb1db400ef056ad5aee3c75
parent1d0ee0c9df31c9fd1e4f8d7e2464e36fbf6e3f75
spi: axi-spi-engine: don't repeat mode config for offload

Add an optimization to avoid repeating the config instruction in each
SPI message when using SPI offloading. Instead, the instruction is
run once when the SPI offload trigger is enabled.

This is done to allow higher sample rates for ADCs using this SPI
controller.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250428-adi-main-v1-2-4b8a1b88a212@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-axi-spi-engine.c