[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221027051429.46593-3-sireeshkodali1@gmail.com>
Date: Thu, 27 Oct 2022 10:44:28 +0530
From: Sireesh Kodali <sireeshkodali1@...il.com>
To: vkoul@...nel.org, linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org, linux-arm-msm@...r.kernel.org
Cc: dmaengine@...r.kernel.org, ~postmarketos/upstreaming@...ts.sr.ht,
Sireesh Kodali <sireeshkodali1@...il.com>
Subject: [PATCH v2 2/3] dmaengine: Add support for immediate commands in the client API
Immediate commands are needed by the IPA network driver, so that it can
send commands via BAM to the IPA microcontroller.
Signed-off-by: Sireesh Kodali <sireeshkodali1@...il.com>
---
include/linux/dmaengine.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index c923f4e60f24..8da96bb50a63 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -190,6 +190,9 @@ struct dma_interleaved_template {
* transaction is marked with DMA_PREP_REPEAT will cause the new transaction
* to never be processed and stay in the issued queue forever. The flag is
* ignored if the previous transaction is not a repeated transaction.
+ * @DMA_PREP_IMM_CMD: tell the driver that the data passed to the DMA API is
+ * immediate command data and the descriptor should be in a different format
+ * from the normal data and descriptor
*/
enum dma_ctrl_flags {
DMA_PREP_INTERRUPT = (1 << 0),
@@ -202,6 +205,7 @@ enum dma_ctrl_flags {
DMA_PREP_CMD = (1 << 7),
DMA_PREP_REPEAT = (1 << 8),
DMA_PREP_LOAD_EOT = (1 << 9),
+ DMA_PREP_IMM_CMD = (1 << 10),
};
/**
--
2.38.1
Powered by blists - more mailing lists