]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: axi-spi-engine: use message_prepare/unprepare
authorDavid Lechner <dlechner@baylibre.com>
Fri, 17 Nov 2023 20:13:01 +0000 (14:13 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 20 Nov 2023 13:29:12 +0000 (13:29 +0000)
commit0c74de5c6853b0e83413ad237867a37ba30ef3f9
tree21d0189e5cab2f31d2ca28170c0216dfcec3790b
parent7f970ecb77b6759d37ee743fc36fc0daba960e75
spi: axi-spi-engine: use message_prepare/unprepare

This modifies the AXI SPI Engine driver to make use of the
message_prepare and message_unprepare callbacks. This separates
the concerns of allocating and freeing the message state from the
transfer_one_message callback.

The main benfit of this is so that future callers of
spi_finalize_current_message() will not have to do manual cleanup
of the state.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20231117-axi-spi-engine-series-1-v1-10-cc59db999b87@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-axi-spi-engine.c