File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -1404,16 +1404,18 @@ static void xilinx_vdma_start_transfer(struct xilinx_dma_chan *chan)
1404
1404
1405
1405
dma_ctrl_write (chan , XILINX_DMA_REG_DMACR , reg );
1406
1406
1407
- j = chan -> desc_submitcount ;
1408
- reg = dma_read (chan , XILINX_DMA_REG_PARK_PTR );
1409
- if (chan -> direction == DMA_MEM_TO_DEV ) {
1410
- reg &= ~XILINX_DMA_PARK_PTR_RD_REF_MASK ;
1411
- reg |= j << XILINX_DMA_PARK_PTR_RD_REF_SHIFT ;
1412
- } else {
1413
- reg &= ~XILINX_DMA_PARK_PTR_WR_REF_MASK ;
1414
- reg |= j << XILINX_DMA_PARK_PTR_WR_REF_SHIFT ;
1407
+ if (config -> park ) {
1408
+ j = chan -> desc_submitcount ;
1409
+ reg = dma_read (chan , XILINX_DMA_REG_PARK_PTR );
1410
+ if (chan -> direction == DMA_MEM_TO_DEV ) {
1411
+ reg &= ~XILINX_DMA_PARK_PTR_RD_REF_MASK ;
1412
+ reg |= j << XILINX_DMA_PARK_PTR_RD_REF_SHIFT ;
1413
+ } else {
1414
+ reg &= ~XILINX_DMA_PARK_PTR_WR_REF_MASK ;
1415
+ reg |= j << XILINX_DMA_PARK_PTR_WR_REF_SHIFT ;
1416
+ }
1417
+ dma_write (chan , XILINX_DMA_REG_PARK_PTR , reg );
1415
1418
}
1416
- dma_write (chan , XILINX_DMA_REG_PARK_PTR , reg );
1417
1419
1418
1420
/* Start the hardware */
1419
1421
xilinx_dma_start (chan );
You can’t perform that action at this time.
0 commit comments