dma: shdma: transfer based runtime PM
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 18 Aug 2011 14:55:27 +0000 (16:55 +0200)
committerVinod Koul <vinod.koul@linux.intel.com>
Wed, 28 Sep 2011 04:37:40 +0000 (10:07 +0530)
commit7a1cd9ad87979744e1510782b25c38feb9602739
tree93dd2e114d474096fd654707d61a9e0f96a52a6b
parentb4dae6e1adaedc9c343b5f00332312d649600bdc
dma: shdma: transfer based runtime PM

Currently the shdma dmaengine driver uses runtime PM to save power, when
no channel on the specific controller is requested by a user. This patch
switches the driver to count individual DMA transfers. That way the
controller can be powered down between transfers, even if some of its
channels are in use.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/shdma.c
drivers/dma/shdma.h