dmaengine: mpc512x: Fix hanging DMA device transfer for MPC8308
authorMario Six <mario.six@gdsys.cc>
Fri, 18 Mar 2016 13:57:19 +0000 (14:57 +0100)
committerVinod Koul <vinod.koul@intel.com>
Mon, 4 Apr 2016 16:50:10 +0000 (09:50 -0700)
commit237ec70903bcf50768138b6c663c67ef1f946cc8
tree33e0b685d807f2ce2f1d01876981a304e9e95bdf
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
dmaengine: mpc512x: Fix hanging DMA device transfer for MPC8308

Since the MPC8308 has no external request lines to initiate DMA transfers,
all transfers must be triggered by software.

Because of this, the current implementation of DMA transfers from and to
devices on MPC8308 SoCs using major and minor loops is faulty: After the
completion of the first major loop, the DMA engine resets the start flag in
the channel's TCD, thus halting the transfer. The driver would have to set
the start bit again to trigger the next iteration of the major loop; on
MPC512x SoCs, this is done via the external request lines, so in this case,
the driver doesn't have to interfer in any way.

This has the effect that on MPC8308s, every DMA transfer to or from a
device hangs after executing the first major loop.

The patch fixes this behavior by using just one major loop for the whole
DMA transfer on MPC8308s.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mpc512x_dma.c
This page took 0.025493 seconds and 5 git commands to generate.