]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: axi-dmac: Enable TLAST handling
authorMichael Hennerich <michael.hennerich@analog.com>
Thu, 16 May 2019 09:44:30 +0000 (12:44 +0300)
committerVinod Koul <vkoul@kernel.org>
Tue, 21 May 2019 05:08:18 +0000 (10:38 +0530)
commit25315ed4ceb0bfb5fdaf383a0f966d706becfe41
tree271c1f587fff405669a099f5d70f08b4568a0130
parentd87b72b5973fa3c7a00898dd1add81f19863d8bb
dmaengine: axi-dmac: Enable TLAST handling

The TLAST flag is used by the DMAC HDL controller to signal to the
controller that the following segment (to be submitted) is the last one (in
a series of segments).

A receiver DMA (typically another DMAC) can read this parameter (from the
transfer), and terminate the transfer earlier. A typical use-case for this,
is when the receiver expects a certain amount of segments, but for some
reason (e.g. an ADC capture which can have an unknown number of digital
samples) the number of actual segments is smaller. The receiver would read
this flag, and then the DMAC would finish.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-axi-dmac.c