dmaengine: Add an enum for the dmaengine alignment constraints
Most drivers need to set constraints on the buffer alignment for async tx operations. However, even though it is documented, some drivers either use a defined constant that is not matching what the alignment variable expects (like DMA_BUSWIDTH_* constants) or fill the alignment in bytes instead of power of two. Add a new enum for these alignments that matches what the framework expects, and convert the drivers to it. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
这个提交包含在:
@@ -775,7 +775,7 @@ static int jz4780_dma_probe(struct platform_device *pdev)
|
||||
dma_cap_set(DMA_CYCLIC, dd->cap_mask);
|
||||
|
||||
dd->dev = dev;
|
||||
dd->copy_align = 2; /* 2^2 = 4 byte alignment */
|
||||
dd->copy_align = DMAENGINE_ALIGN_4_BYTES;
|
||||
dd->device_alloc_chan_resources = jz4780_dma_alloc_chan_resources;
|
||||
dd->device_free_chan_resources = jz4780_dma_free_chan_resources;
|
||||
dd->device_prep_slave_sg = jz4780_dma_prep_slave_sg;
|
||||
|
在新工单中引用
屏蔽一个用户