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)
commita3ee0bf23eaec2ae46fc6b1266bdaa5995b55c1e
tree271c1f587fff405669a099f5d70f08b4568a0130
parent8add6cce98482da67e971addd7eae8f22f8e6c7a
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