summaryrefslogtreecommitdiffstats
path: root/drivers/dma/dw_dmac_regs.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2011-04-19 08:31:32 +0800
committerVinod Koul <vinod.koul@intel.com>2011-05-13 19:40:15 +0530
commita7c57cf7d4327c41510f8cbf45b1b970e02c34f8 (patch)
tree2f1b7ae4940d9540d966f8a287a7337d14cb7c76 /drivers/dma/dw_dmac_regs.h
parent69cea5a00d3135677939fce1fefe54ed522055a0 (diff)
downloadblackbird-op-linux-a7c57cf7d4327c41510f8cbf45b1b970e02c34f8.tar.gz
blackbird-op-linux-a7c57cf7d4327c41510f8cbf45b1b970e02c34f8.zip
dmaengine/dw_dmac: implement pause and resume in dwc_control
Some peripherals like amba-pl011 needs pause to be implemented in DMA controller drivers. This also returns correct status from dwc_tx_status() in case chan is paused. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw_dmac_regs.h')
-rw-r--r--drivers/dma/dw_dmac_regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/dw_dmac_regs.h b/drivers/dma/dw_dmac_regs.h
index 720f821527f8..c968597c32ab 100644
--- a/drivers/dma/dw_dmac_regs.h
+++ b/drivers/dma/dw_dmac_regs.h
@@ -138,6 +138,7 @@ struct dw_dma_chan {
void __iomem *ch_regs;
u8 mask;
u8 priority;
+ bool paused;
spinlock_t lock;
OpenPOWER on IntegriCloud