Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Kuninori Morimoto and committed by
Vinod Koul
2b5fbb82 fdb8df99

+1 -1
+1 -1
drivers/dma/sh/rcar-hpbdma.c
··· 600 600 dma_dev->src_addr_widths = widths; 601 601 dma_dev->dst_addr_widths = widths; 602 602 dma_dev->directions = BIT(DMA_MEM_TO_DEV) | BIT(DMA_DEV_TO_MEM); 603 - dma_dev->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; 603 + dma_dev->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR; 604 604 605 605 hpbdev->shdma_dev.ops = &hpb_dmae_ops; 606 606 hpbdev->shdma_dev.desc_size = sizeof(struct hpb_desc);