spi: axi-spi-engine: implement offload support
authorDavid Lechner <dlechner@baylibre.com>
Fri, 7 Feb 2025 20:09:04 +0000 (14:09 -0600)
committerMark Brown <broonie@kernel.org>
Fri, 7 Feb 2025 20:17:13 +0000 (20:17 +0000)
commit5a19e1985d014fab9892348f6175a19143cec810
treef4f35d0b8df284aaca6b2005c016cc93979a8781
parente1101373df5cd7672d988bb4e9cdd5eb97003165
spi: axi-spi-engine: implement offload support

Implement SPI offload support for the AXI SPI Engine. Currently, the
hardware only supports triggering offload transfers with a hardware
trigger so attempting to use an offload message in the regular SPI
message queue will fail. Also, only allows streaming rx data to an
external sink, so attempts to use a rx_buf in the offload message will
fail.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250207-dlech-mainline-spi-engine-offload-2-v8-7-e48a489be48c@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/Kconfig
drivers/spi/spi-axi-spi-engine.c