OSDN Git Service

dmaengine: rcar-hpbdma: tidyup residue_granularity
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 21 Jan 2015 04:42:22 +0000 (04:42 +0000)
committerVinod Koul <vinod.koul@intel.com>
Mon, 26 Jan 2015 06:37:05 +0000 (22:37 -0800)
The driver doesn't support residue reporting at all.
residue_granularity should be set to DMA_RESIDUE_GRANULARITY_DESCRIPTOR.
Special thanks to Laurent

Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/rcar-hpbdma.c

index 6fef1b9..749f26e 100644 (file)
@@ -600,7 +600,7 @@ static int hpb_dmae_probe(struct platform_device *pdev)
        dma_dev->src_addr_widths = widths;
        dma_dev->dst_addr_widths = widths;
        dma_dev->directions = BIT(DMA_MEM_TO_DEV) | BIT(DMA_DEV_TO_MEM);
-       dma_dev->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST;
+       dma_dev->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR;
 
        hpbdev->shdma_dev.ops = &hpb_dmae_ops;
        hpbdev->shdma_dev.desc_size = sizeof(struct hpb_desc);