dmaengine: ste_dma40: indicate granularity on channels
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 13 Jan 2017 15:02:09 +0000 (16:02 +0100)
committerVinod Koul <vinod.koul@intel.com>
Sat, 14 Jan 2017 15:03:42 +0000 (20:33 +0530)
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 <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ste_dma40.c

index 2f0852dfbd1b536a66e9867900246e103863fbc5..a6620b671d1d9b4b5b55de388743e1f7091db2c4 100644 (file)
@@ -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;
 }