dmaengine: axi-dmac: assign `copy_align` property
Vinod Koul
maintainerPATCH v2 1/1 dmaengine: axi-dmac: assign `copy_align` property
Quoted 11 lines · Alexandru
Quoted 6 lines · Alexandru Ardelean
The
copy_alignproperty 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.build bot said this doesn't compile.
I think this patch needs to come later after some more updates have been pushed for this driver.
Well build bot has no idea about that (like me), so better to put them in a series and send (that way bot and me know which should come first)
Quoted 24 lines
Quoted 24 lines
Signed-off-by Alexandru Ardelean <[email protected]>---
Changelog v1 -> v2:
* re-applied & moved thecopy_alignassignment; apparently it was conflicting with another patch from another seriesdrivers/dma/dma-axi-dmac.c | 1 + 1 file changed, 1 insertion(+)drivers/dma/dma-axi-dmac.c +1
-0@@ -666,6 +666,7 @@ static int axi_dmac_probe(struct platform_device *pdev) dma_dev->dst_addr_widths =BIT (dmac->chan.dest_width); dma_dev->directions =BIT (dmac->chan.direction); dma_dev->residue_granularity =DMA_RESIDUE_GRANULARITY_DESCRIPTOR ; + dma_dev->copy_align = (dmac->chan.address_align_mask +1 );INIT_LIST_HEAD (&dma_dev->channels);
dmac->chan.vchan.desc_free=axi_dmac_desc_free;