spi: stm32: use dma_get_slave_caps prior to configuring dma channel
authorAlain Volmat <alain.volmat@foss.st.com>
Mon, 18 Dec 2023 15:57:13 +0000 (16:57 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 21 Dec 2023 20:44:03 +0000 (20:44 +0000)
commit6f98f25247b7ef03fb89030a3af6c0eb08132104
treeb2cfc174864d68cad2a299d4a2c80dcb78e6e1cd
parent15009a1b145b033c39a6b65d529c83de71a8d732
spi: stm32: use dma_get_slave_caps prior to configuring dma channel

First check the dma channel capabilities (max burst) before
configuring the dma channel.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Link: https://msgid.link/r/20231218155721.359198-2-alain.volmat@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c