diff options
| author | Serge Semin <[email protected]> | 2023-01-13 20:13:47 +0300 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2023-01-27 17:15:33 +0100 |
| commit | c8ed49182286cb9c64f0c503b98090bd11a3fb60 (patch) | |
| tree | 69bae2038ef56047bf135c6bf9f9a97c15f6388e /drivers/fpga/zynqmp-fpga.c | |
| parent | 13b6299cf66165a442089fa895a7f70250703584 (diff) | |
dmaengine: dw-edma: Don't permit non-inc interleaved xfers
The DW eDMA controller always increments both source and destination
addresses. Permitting DMA interleaved transfers with no src_inc/dst_inc
flags set may lead to unexpected behaviour for the device users.
Terminate interleaved transfers if at least one of the
dma_interleaved_template.{src_inc,dst_inc} flag is initialized to "false".
Note that in addition, we need to increase the source and destination
addresses after each iteration.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 85e7518f42c8 ("dmaengine: dw-edma: Add device_prep_interleave_dma() support")
Tested-by: Manivannan Sadhasivam <[email protected]>
Signed-off-by: Serge Semin <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/fpga/zynqmp-fpga.c')
0 files changed, 0 insertions, 0 deletions