dmaengine: add async_tx_clear_ack() macro
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / linux / dmaengine.h
index c4a560e72ab74854825d425072d31981ae5e9789..34f124d7fb945a003a24d4087325cd8a67382b1b 100644 (file)
@@ -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;