Skip to content

Commit

Permalink
dmaengine: pl330: report BURST residue granularity
Browse files Browse the repository at this point in the history
The reported residue is already calculated in BURST unit granularity, so
advertise this capability properly to other devices in the system.

Fixes: aee4d1f ("dmaengine: pl330: improve pl330_tx_status() function")
Signed-off-by: Marek Szyprowski <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
mszyprow authored and vinodkoul committed Jun 28, 2018
1 parent 356073b commit e3f329c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/pl330.c
Original file line number Diff line number Diff line change
Expand Up @@ -3033,7 +3033,7 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)
pd->src_addr_widths = PL330_DMA_BUSWIDTHS;
pd->dst_addr_widths = PL330_DMA_BUSWIDTHS;
pd->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
pd->residue_granularity = DMA_RESIDUE_GRANULARITY_SEGMENT;
pd->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST;
pd->max_burst = ((pl330->quirks & PL330_QUIRK_BROKEN_NO_FLUSHP) ?
1 : PL330_MAX_BURST);

Expand Down

0 comments on commit e3f329c

Please sign in to comment.