dmaengine: rcar-dmac: Add helpers for clearing DMA channel status
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 28 Jan 2021 08:44:54 +0000 (09:44 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 1 Feb 2021 05:48:59 +0000 (11:18 +0530)
commit245bbd16b72cffe86d9216b26ac182bf850bec2b
tree56e11a745f2aee4338184bded7a99f7f42f0f72d
parentd249b5fb379f8368e35d94660a1302e07b70e9f6
dmaengine: rcar-dmac: Add helpers for clearing DMA channel status

Extract the code to clear the status of one or all channels into their
own helpers, to prepare for the different handling of the R-Car V3U SoC.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20210128084455.2237256-4-geert+renesas@glider.be
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sh/rcar-dmac.c