From: Kuninori Morimoto Date: Wed, 21 Jan 2015 04:42:22 +0000 (+0000) Subject: dmaengine: rcar-hpbdma: tidyup residue_granularity X-Git-Tag: v4.0-rc1~47^2~28^2~1 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2b5fbb824f99c5a31e9ff175e96257c1d49e2e15;p=uclinux-h8%2Flinux.git dmaengine: rcar-hpbdma: tidyup residue_granularity 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 Signed-off-by: Kuninori Morimoto Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/sh/rcar-hpbdma.c b/drivers/dma/sh/rcar-hpbdma.c index 6fef1b95c895..749f26ecd3b3 100644 --- a/drivers/dma/sh/rcar-hpbdma.c +++ b/drivers/dma/sh/rcar-hpbdma.c @@ -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);