dmaengine: sh: rcar-dmac: Add dma_pause operation
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 11 Jul 2018 02:10:16 +0000 (11:10 +0900)
committerVinod Koul <vkoul@kernel.org>
Wed, 11 Jul 2018 05:17:31 +0000 (10:47 +0530)
commit8115ce745fa26ccffe7d1a542ab4322acf4a682d
tree5c516be732e1479e3d6f37a2a21bd47c6d0f23fe
parent4de1247a9826cec0ba054479124bd9aa60fb71a5
dmaengine: sh: rcar-dmac: Add dma_pause operation

This patch adds dma_pause operation. This patch is based on
Muhammad Hamza Farooq's patch.

After this patch applied, an issue that the sh-sci driver with
high baud rate might cause data lost disappeared because the DMAC
is possible to transmit between [1] and [2] below, and then
the residue of [1] is not true:

In rx_timer_fn() of the sh-sci.c:
dmaengine_pause();
...
dmaengine_tx_status(); /* [1] */
...
dmaengine_terminate_all(); /* [2] */

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sh/rcar-dmac.c