mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 07:50:04 +00:00
dmaengine: xilinx: vdma: icg should be difference of stride and hsize
This patch modifies the icg field to match the description as mentioned in the DMA Linux framework. Signed-off-by: Srikanth Thokala <sthokal@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
a5e48e243b
commit
6d80f45f50
@ -963,7 +963,7 @@ xilinx_vdma_dma_prep_interleaved(struct dma_chan *dchan,
|
||||
hw = &segment->hw;
|
||||
hw->vsize = xt->numf;
|
||||
hw->hsize = xt->sgl[0].size;
|
||||
hw->stride = xt->sgl[0].icg <<
|
||||
hw->stride = (xt->sgl[0].icg + xt->sgl[0].size) <<
|
||||
XILINX_VDMA_FRMDLY_STRIDE_STRIDE_SHIFT;
|
||||
hw->stride |= chan->config.frm_dly <<
|
||||
XILINX_VDMA_FRMDLY_STRIDE_FRMDLY_SHIFT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user