Commit 15dfd2a9 authored by Federico Vaga's avatar Federico Vaga

sw:drv: remove all pending transfers on terminate_all

Signed-off-by: Federico Vaga's avatarFederico Vaga <>
parent bbf5a4aa
......@@ -632,12 +632,22 @@ static int gn412x_dma_slave_config(struct dma_chan *chan,
static int gn412x_dma_terminate_all(struct dma_chan *chan)
struct gn412x_dma_chan *gn412x_dma_chan = to_gn412x_dma_chan(chan);
struct gn412x_dma_device *gn412x_dma;
struct gn412x_dma_tx *tx;
struct gn412x_dma_tx *tx, *tx_tmp;
unsigned long flags;
gn412x_dma = to_gn412x_dma_device(chan->device);
/* FIXME remove all pending */
spin_lock_irqsave(&gn412x_dma_chan->lock, flags);
list_for_each_entry_safe(tx, tx_tmp,
&gn412x_dma_chan->pending_list, list) {
spin_unlock_irqrestore(&gn412x_dma_chan->lock, flags);
if (!gn412x_dma_is_abort(gn412x_dma)) {
"Failed to abort DMA transfer\n");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment