diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2015-09-21 11:06:32 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-09-25 03:51:01 +0200 |
commit | aebf5a67db8dbacbc624b9c652b81f5460b15eff (patch) | |
tree | b77ef880a32a30f187da1f0b9d6379cc6af8aadd /drivers/dma/pxa_dma.c | |
parent | Linux 4.3-rc1 (diff) | |
download | linux-aebf5a67db8dbacbc624b9c652b81f5460b15eff.tar.xz linux-aebf5a67db8dbacbc624b9c652b81f5460b15eff.zip |
dmaengine: pxa_dma: fix initial list move
Since the commit to have an allocated list of virtual descriptors was
reverted, the pxa_dma driver is broken, as it assumes the descriptor is
placed on the allocated list upon allocation.
Fix the issue in pxa_dma by making an allocated virtual descriptor a
singleton.
Fixes: 8c8fe97b2b8a ("Revert "dmaengine: virt-dma: don't always free descriptor upon completion"")
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/pxa_dma.c')
-rw-r--r-- | drivers/dma/pxa_dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/pxa_dma.c b/drivers/dma/pxa_dma.c index 5cb61ce01036..c6723ecd5848 100644 --- a/drivers/dma/pxa_dma.c +++ b/drivers/dma/pxa_dma.c @@ -887,6 +887,7 @@ pxad_tx_prep(struct virt_dma_chan *vc, struct virt_dma_desc *vd, struct dma_async_tx_descriptor *tx; struct pxad_chan *chan = container_of(vc, struct pxad_chan, vc); + INIT_LIST_HEAD(&vd->node); tx = vchan_tx_prep(vc, vd, tx_flags); tx->tx_submit = pxad_tx_submit; dev_dbg(&chan->vc.chan.dev->device, |