From: Guennadi Liakhovetski Date: Mon, 19 Jan 2009 22:36:21 +0000 (-0700) Subject: dmaengine: add async_tx_clear_ack() macro X-Git-Tag: v2.6.29-rc3~34^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ef560682a97491f62ef538931a4861b57d66c52c;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Dan Williams --- diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index c4a560e72ab..34f124d7fb9 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;