Skip to content

Commit 6e96adc

Browse files
povikvinodkoul
authored andcommitted
dmaengine: apple-admac: Set src_addr_widths capability
Add missing setting of 'src_addr_widths', which is the same as for the other direction. Fixes: b127315 ("dmaengine: apple-admac: Add Apple ADMAC driver") Signed-off-by: Martin Povišer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent a288fd1 commit 6e96adc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/dma/apple-admac.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,9 @@ static int admac_probe(struct platform_device *pdev)
858858

859859
dma->directions = BIT(DMA_MEM_TO_DEV) | BIT(DMA_DEV_TO_MEM);
860860
dma->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST;
861+
dma->src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) |
862+
BIT(DMA_SLAVE_BUSWIDTH_2_BYTES) |
863+
BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);
861864
dma->dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) |
862865
BIT(DMA_SLAVE_BUSWIDTH_2_BYTES) |
863866
BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);

0 commit comments

Comments
 (0)