Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759487AbYLLQti (ORCPT ); Fri, 12 Dec 2008 11:49:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758844AbYLLQsv (ORCPT ); Fri, 12 Dec 2008 11:48:51 -0500 Received: from mail.gmx.net ([213.165.64.20]:37309 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1758746AbYLLQsu (ORCPT ); Fri, 12 Dec 2008 11:48:50 -0500 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX1/mbiYO2q3mDrseVFrFyjDyMdDv7LvSz4dHmrxkZt mZKKHhFmJl7IyM Date: Fri, 12 Dec 2008 17:49:01 +0100 (CET) From: Guennadi Liakhovetski To: linux-kernel@vger.kernel.org cc: linux-fbdev-devel@lists.sourceforge.net, adaplas@gmail.com, Sascha Hauer , linux-arm-kernel@lists.arm.linux.org.uk, Dan Williams Subject: [PATCH 1/4 v3] dmaengine: add async_tx_clear_ack() macro In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1047 Lines: 33 From: Guennadi Liakhovetski To complete the DMA_CTRL_ACK handling API add a async_tx_clear_ack() macro. Signed-off-by: Guennadi Liakhovetski --- 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 64dea2a..c820a3f 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; -- 1.5.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/