]> git.baikalelectronics.ru Git - kernel.git/commit
spi: stm32: finalize message either on dma callback or EOT
authorAlain Volmat <alain.volmat@foss.st.com>
Wed, 7 Jul 2021 08:27:06 +0000 (10:27 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 11 Jul 2021 22:51:43 +0000 (23:51 +0100)
commite77c786aa2dee71863f0deb4f4bb2dc8b0eca70f
tree880b3f26abebf315c757825b8f90532522369b58
parent6c9715e59d3ed8fac1be9d164fef83a39dc9b766
spi: stm32: finalize message either on dma callback or EOT

Depending on the usage, it is necessary to perform the finalize
message operation either upon receiving the EOT interruption,
eiher upon receiving the DMA callback. Indeed, when relying
on DMA, even if the SPI EOT IT has been received, it is
necessary to wait for the end of the DMA RX transaction before
accessing to the data.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Link: https://lore.kernel.org/r/1625646426-5826-8-git-send-email-alain.volmat@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c