dmaengine: mid_dma: mask_peripheral_interrupt only when dmac is idle
authorVinod Koul <vinod.koul@intel.com>
Mon, 10 Oct 2011 07:03:59 +0000 (12:33 +0530)
committerVinod Koul <vinod.koul@linux.intel.com>
Sun, 16 Oct 2011 11:46:45 +0000 (17:16 +0530)
commit4598fc2c94b68740e0269db03c98a1e7ad5af773
treec70d3208052b636ab299f2f0b18af3d52bffda9f
parent2389d674bfd42aa26cbbf6064ed48ee9a87a5c7e
dmaengine: mid_dma: mask_peripheral_interrupt only when dmac is idle

The mask_peripheral_interrupt is called when channel wants to mask the
interrupt. Move this to suspend as this masking affects other channels
as well. Not touching unmask here and unmask would still be done of
first channel use

Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/intel_mid_dma.c