]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Documentation :dmaengine: clarify DMA desc. pointer after submission
authorFederico Vaga <federico.vaga@cern.ch>
Fri, 8 Feb 2019 15:30:38 +0000 (16:30 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 11 Feb 2019 11:53:32 +0000 (17:23 +0530)
It clarifies that the DMA description pointer returned by
`dmaengine_prep_*` function should not be used after submission.

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/driver-api/dmaengine/client.rst

index fbbb2831f29f8c7f50675238289478c98f472606..45953f17150007d750b5b12b41e0ac31599f302e 100644 (file)
@@ -168,6 +168,13 @@ The details of these operations are:
    dmaengine_submit() will not start the DMA operation, it merely adds
    it to the pending queue. For this, see step 5, dma_async_issue_pending.
 
+   .. note::
+
+      After calling ``dmaengine_submit()`` the submitted transfer descriptor
+      (``struct dma_async_tx_descriptor``) belongs to the DMA engine.
+      Consequently, the client must consider invalid the pointer to that
+      descriptor.
+
 5. Issue pending DMA requests and wait for callback notification
 
    The transactions in the pending queue can be activated by calling the