summaryrefslogtreecommitdiff
path: root/include/linux/dmaengine.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <lg@denx.de>2009-01-20 01:36:21 +0300
committerDan Williams <dan.j.williams@intel.com>2009-01-20 01:36:21 +0300
commitef560682a97491f62ef538931a4861b57d66c52c (patch)
tree3dc1fe733675eb99bd92e680946c1deeaf64b2ef /include/linux/dmaengine.h
parentc50331e8be32eaba5e1949f98c70d50b891262db (diff)
downloadlinux-ef560682a97491f62ef538931a4861b57d66c52c.tar.xz
dmaengine: add async_tx_clear_ack() macro
To complete the DMA_CTRL_ACK handling API add a async_tx_clear_ack() macro. Signed-off-by: Guennadi Liakhovetski <lg@denx.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r--include/linux/dmaengine.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index c4a560e72ab7..34f124d7fb94 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -287,6 +287,11 @@ static inline void async_tx_ack(struct dma_async_tx_descriptor *tx)
tx->flags |= DMA_CTRL_ACK;
}
+static inline void async_tx_clear_ack(struct dma_async_tx_descriptor *tx)
+{
+ tx->flags &= ~DMA_CTRL_ACK;
+}
+
static inline bool async_tx_test_ack(struct dma_async_tx_descriptor *tx)
{
return (tx->flags & DMA_CTRL_ACK) == DMA_CTRL_ACK;