diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-09-23 17:18:14 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-10-15 20:31:05 +0530 |
commit | 99d9bf4ed27c63d5559e31d112f71af655c7182b (patch) | |
tree | f0fc2e9d1053d98b265f38453e01cba00d1b7bd2 /drivers/dma/dw/regs.h | |
parent | 2540f74b187e3ec0fe106b7427c4a84c955dc140 (diff) |
dmaengine: dw: enable and disable controller when needed
Enable controller automatically whenever first user requires for a channel and
disable it when the last user gone.
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/dw/regs.h b/drivers/dma/dw/regs.h index e8f92b28ffc2..848e232f7cc7 100644 --- a/drivers/dma/dw/regs.h +++ b/drivers/dma/dw/regs.h @@ -281,6 +281,7 @@ struct dw_dma { /* channels */ struct dw_dma_chan *chan; u8 all_chan_mask; + u8 in_use; /* hardware configuration */ unsigned char nr_masters; |