Skip to content

Commit

Permalink
dma: axi-dmac: Enable FLAG_LAST independent of FLAG_CYCLIC
Browse files Browse the repository at this point in the history
An example when these two bits should be enabled simultaneously is
where the controller is used as a Video DMA and the TLAST signal acts
as an "end of frame" signal.

Signed-off-by: Dragos Bogdan <[email protected]>
  • Loading branch information
dbogdan authored and commodo committed Aug 20, 2018
1 parent 78f1a03 commit a288f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/dma-axi-dmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ static void axi_dmac_start_transfer(struct axi_dmac_chan *chan)
desc->num_submitted = 0; /* Start again */
} else {
chan->next_desc = NULL;
flags |= AXI_DMAC_FLAG_LAST;
}
flags |= AXI_DMAC_FLAG_LAST;
} else {
chan->next_desc = desc;
}
Expand Down

0 comments on commit a288f0f

Please sign in to comment.