diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2019-05-27 09:55:18 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-05-27 12:36:08 +0530 |
commit | 5b969bd1d9cdfc8200f3dccf07a0270eaa2f2bbd (patch) | |
tree | 3e44f05dd45127c275efce3937a88728323d0b73 /drivers/dma/dma-axi-dmac.c | |
parent | a5b20600a67a9b78a63e8d5b0c59327ddf636064 (diff) | |
download | linux-5b969bd1d9cdfc8200f3dccf07a0270eaa2f2bbd.tar.bz2 |
dmaengine: 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>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/dma-axi-dmac.c')
-rw-r--r-- | drivers/dma/dma-axi-dmac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c index 74ae6246d9a5..d5e29bbc3d43 100644 --- a/drivers/dma/dma-axi-dmac.c +++ b/drivers/dma/dma-axi-dmac.c @@ -763,6 +763,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); |