diff options
author | Guennadi Liakhovetski <lg@denx.de> | 2009-01-19 22:36:21 (GMT) |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-01-19 22:36:21 (GMT) |
commit | ef560682a97491f62ef538931a4861b57d66c52c (patch) | |
tree | 3dc1fe733675eb99bd92e680946c1deeaf64b2ef /include/linux/dmaengine.h | |
parent | c50331e8be32eaba5e1949f98c70d50b891262db (diff) | |
download | linux-fsl-qoriq-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index c4a560e..34f124d 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; |