projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c50331e
)
dmaengine: add async_tx_clear_ack() macro
author
Guennadi Liakhovetski
<lg@denx.de>
Mon, 19 Jan 2009 22:36:21 +0000
(15:36 -0700)
committer
Dan Williams
<dan.j.williams@intel.com>
Mon, 19 Jan 2009 22:36:21 +0000
(15:36 -0700)
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>
include/linux/dmaengine.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/dmaengine.h
b/include/linux/dmaengine.h
index c4a560e72ab74854825d425072d31981ae5e9789..34f124d7fb945a003a24d4087325cd8a67382b1b 100644
(file)
--- 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;