From: Linus Walleij Date: Fri, 13 Jan 2017 15:02:09 +0000 (+0100) Subject: dmaengine: ste_dma40: indicate granularity on channels X-Git-Tag: v4.11-rc1~131^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15c606686541d49cc38465a3cfe25c23bff4395b;p=platform%2Fkernel%2Flinux-exynos.git dmaengine: ste_dma40: indicate granularity on channels The ste_dma40 has burst level granularity on the residue registers, which is necessary for some clients to know, notably the UART. Before this patch we get this message: uart-pl011 80007000.uart: RX DMA disabled - no residue processing This patch fixes it. Signed-off-by: Linus Walleij Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 2f0852d..a6620b6 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -2838,6 +2838,7 @@ static void d40_ops_init(struct d40_base *base, struct dma_device *dev) dev->device_pause = d40_pause; dev->device_resume = d40_resume; dev->device_terminate_all = d40_terminate_all; + dev->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; dev->dev = base->dev; }