]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-rspi: Fix PIO fallback on RZ platforms
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 21 Jul 2022 14:34:49 +0000 (15:34 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 21 Jul 2022 16:21:07 +0000 (17:21 +0100)
commit20668efce273f70e37c3b33cc6854572936281c8
treea7f8559aae453192bf55f846acb8f1abf2a9dc9d
parent58d2f39f5a98c0bf119c961d00563c1552f483e6
spi: spi-rspi: Fix PIO fallback on RZ platforms

RSPI IP on RZ/{A, G2L} SoC's has the same signal for both interrupt
and DMA transfer request. Setting DMARS register for DMA transfer
makes the signal to work as a DMA transfer request signal and
subsequent interrupt requests to the interrupt controller
are masked.

PIO fallback does not work as interrupt signal is disabled.

This patch fixes this issue by re-enabling the interrupts by
calling dmaengine_synchronize().

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20220721143449.879257-1-biju.das.jz@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rspi.c