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

dmaengine: edma: Update caps->residue_granularity to match with reality

The edma can report accurate DMA position so update the residue_granularity
to DMA_RESIDUE_GRANULARITY_BURST.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Peter Ujfalusi and committed by
Vinod Koul
b7f9bc52 7f5e03e7

+1 -1
+1 -1
drivers/dma/edma.c
··· 992 992 caps->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); 993 993 caps->cmd_pause = true; 994 994 caps->cmd_terminate = true; 995 - caps->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR; 995 + caps->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; 996 996 997 997 return 0; 998 998 }