summaryrefslogtreecommitdiffstats
path: root/drivers/dma/apple-admac.c
diff options
context:
space:
mode:
authorMartin Povišer <povik+lin@cutebit.org>2023-02-24 16:22:22 +0100
committerVinod Koul <vkoul@kernel.org>2023-03-31 18:17:21 +0530
commit6e96adcaa7a29827ac8ee8df290a44957a4823ec (patch)
tree5044f85b1a1b3976236fa9ab20a6fde8e51b744b /drivers/dma/apple-admac.c
parenta288fd158fbf85c06a9ac01cecabf97ac5d962e7 (diff)
downloadlinux-stable-6e96adcaa7a29827ac8ee8df290a44957a4823ec.tar.gz
linux-stable-6e96adcaa7a29827ac8ee8df290a44957a4823ec.tar.bz2
linux-stable-6e96adcaa7a29827ac8ee8df290a44957a4823ec.zip
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: b127315d9a78 ("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>
Diffstat (limited to 'drivers/dma/apple-admac.c')
-rw-r--r--drivers/dma/apple-admac.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/apple-admac.c b/drivers/dma/apple-admac.c
index 00cbfafe0ed9..b9132b495d18 100644
--- a/drivers/dma/apple-admac.c
+++ b/drivers/dma/apple-admac.c
@@ -858,6 +858,9 @@ static int admac_probe(struct platform_device *pdev)
dma->directions = BIT(DMA_MEM_TO_DEV) | BIT(DMA_DEV_TO_MEM);
dma->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST;
+ dma->src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) |
+ BIT(DMA_SLAVE_BUSWIDTH_2_BYTES) |
+ BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);
dma->dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) |
BIT(DMA_SLAVE_BUSWIDTH_2_BYTES) |
BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);