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 <povik+lin@cutebit.org> Link: https://lore.kernel.org/r/20230224152222.26732-3-povik+lin@cutebit.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent a288fd1 commit 6e96adc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)