[PATCH v3 01/11] dmaengine: bcm2835: set residue_granularity field

kernel at martin.sperl.org kernel at martin.sperl.org
Sat Mar 5 02:52:12 PST 2016

From: Martin Sperl <kernel at martin.sperl.org>

bcm2835-dma supports residue reporting at burst level but didn't report
this via the residue_granularity field.

See also:
for the downstream patch.

Signed-off-by: Matthias Reichl <hias at horus.com>
Signed-off-by: Noralf Trønnes <noralf at tronnes.org>
Signed-off-by: Martin Sperl <kernel at martin.sperl.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
 drivers/dma/bcm2835-dma.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/dma/bcm2835-dma.c b/drivers/dma/bcm2835-dma.c
index 996c4b0..2d72fe8 100644
--- a/drivers/dma/bcm2835-dma.c
+++ b/drivers/dma/bcm2835-dma.c
@@ -625,6 +625,7 @@ static int bcm2835_dma_probe(struct platform_device *pdev)
 	od->ddev.src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);
 	od->ddev.dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);
 	od->ddev.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
+	od->ddev.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST;
 	od->ddev.dev = &pdev->dev;

More information about the linux-rpi-kernel mailing list