diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2016-03-18 15:24:53 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-04-13 18:06:16 +0200 |
commit | b68fd0976286e0cc4e163a83b8b68d6efca814dd (patch) | |
tree | 10737c6c433fe56d420952f63183657c002a01b9 /drivers/dma/dw/regs.h | |
parent | dmaengine: dw: move dwc->initialized to dwc->flags (diff) | |
download | linux-b68fd0976286e0cc4e163a83b8b68d6efca814dd.tar.xz linux-b68fd0976286e0cc4e163a83b8b68d6efca814dd.zip |
dmaengine: dw: move residue to a descriptor
Residue is a property of any active descriptor. So, any descriptor may be in
different state but residue is a feature of active descriptor. Check if the
asked descriptor is active and return proper residue value for it.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw/regs.h')
-rw-r--r-- | drivers/dma/dw/regs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/dw/regs.h b/drivers/dma/dw/regs.h index 89178641e80b..96f498188257 100644 --- a/drivers/dma/dw/regs.h +++ b/drivers/dma/dw/regs.h @@ -237,7 +237,6 @@ struct dw_dma_chan { struct list_head active_list; struct list_head queue; struct list_head free_list; - u32 residue; struct dw_cyclic_desc *cdesc; unsigned int descs_allocated; @@ -352,6 +351,7 @@ struct dw_desc { struct dma_async_tx_descriptor txd; size_t len; size_t total_len; + u32 residue; }; #define to_dw_desc(h) list_entry(h, struct dw_desc, desc_node) |