spi: sh-msiof: Make sure all DMA operations have completed
In case of a bi-directional transfer, receive DMA may complete in the
rcar-dmac driver before transmit DMA, due to scheduling latencies.
As the MSIOF driver waits for completion of the receive DMA only, it may
submit the next transmit DMA request before the previous one has
Make the driver more robust by waiting for the completion of both
receive and transmit DMA, when applicable.
Based on a patch in the BSP by Ryo Kataoka.
Signed-off-by: Geert Uytterhoeven <firstname.lastname@example.org>
Signed-off-by: Mark Brown <email@example.com>
(cherry picked from commit 08ba7ae35b15cd13b965d5fd5a835e0a0cb803e6)
Signed-off-by: Simon Horman <firstname.lastname@example.org>
1 file changed