Skip to content

Commit

Permalink
dma: axi-dmac: assign copy_align property
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
commodo committed Nov 20, 2018
1 parent 840d6d8 commit bc30b52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/dma/dma-axi-dmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,8 @@ static int axi_dmac_probe(struct platform_device *pdev)
if (ret)
goto err_clk_disable;

dma_dev->copy_align = (dmac->chan.address_align_mask + 1);

axi_dmac_write(dmac, AXI_DMAC_REG_IRQ_MASK, 0x00);

ret = dma_async_device_register(dma_dev);
Expand Down

0 comments on commit bc30b52

Please sign in to comment.