Skip to content

Commit bc30b52

Browse files
committed
dma: axi-dmac: assign copy_align property
The `copy_align` property is a generic property that describes alignment for DMA memcpy & sg ops. It serves mostly an informational purpose, and can be used in DMA tests, to pass the info to know what alignment to expect. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
1 parent 840d6d8 commit bc30b52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/dma/dma-axi-dmac.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,8 @@ static int axi_dmac_probe(struct platform_device *pdev)
903903
if (ret)
904904
goto err_clk_disable;
905905

906+
dma_dev->copy_align = (dmac->chan.address_align_mask + 1);
907+
906908
axi_dmac_write(dmac, AXI_DMAC_REG_IRQ_MASK, 0x00);
907909

908910
ret = dma_async_device_register(dma_dev);

0 commit comments

Comments
 (0)