]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: axi-spi-engine: optimize bits_per_word for offload
authorDavid Lechner <dlechner@baylibre.com>
Mon, 28 Apr 2025 20:58:58 +0000 (15:58 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 30 Apr 2025 00:38:39 +0000 (09:38 +0900)
commit087591c9e4fde86fe2971c34a2745c208103248e
tree348550f2b76b4790d7044f4af2562288cf3c8d00
parent8fc13b822c74a46587c0d8aae4ea0820b6bdb933
spi: axi-spi-engine: optimize bits_per_word for offload

Add an optimization to avoid repeating bits_per_word instructions in
each message when using SPI offload. This only applies when all data
xfers in a message have the same bits_per_word. In this case, we can
execute the instruction that sets bits_per_word when the offload trigger
is enabled. This is useful e.g. for obtaining higher sample rates on
ADCs since each message takes less time to execute.

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