dmaengine: axi-dmac: Don't check the number of frames for alignment
PATCH v3 1/1 dmaengine: axi-dmac: Don't check the number of frames for alignment
Quoted 11 lines · Alexandru Ardelean
In 2D transfers (for the AXI DMAC), the number of frames (numf) represents
Y_LENGTH, and the length of a frame isX_LENGTH. 2D transfers are useful for video transfers where screen resolutions ( X * Y ) are typically aligned for X, but not for Y.There is no requirement for
Y_LENGTHto be aligned to the bus-width (or anything), and this is also true for AXI DMAC.Checking the
Y_LENGTHfor alignment causes false errors when initiating DMA transfers. This change fixes this by checking only that theY_LENGTHis non-zero.
Applied, thanks