dmaengine: fsl-edma: add PM suspend/resume support
authorYuan Yao <yao.yuan@freescale.com>
Fri, 30 Oct 2015 11:03:58 +0000 (19:03 +0800)
committerVinod Koul <vinod.koul@intel.com>
Sat, 5 Dec 2015 10:22:13 +0000 (15:52 +0530)
commit82d149b86d31e11fbbbc1b850bebffe1bfa2e82d
tree3bc59649da8746c2027d572d6d97035a4d67d820
parentf0579c8ceaf18adf1eca8b4404f9caac37208655
dmaengine: fsl-edma: add PM suspend/resume support

This add power management suspend/resume support for the fsl-edma
driver.

eDMA acted as a basic function used by others. What it needs to do
is the two steps below to support power management.

In fsl_edma_suspend_late:
Check whether the DMA chan is idle, if it is not idle disable DMA
request.

In fsl_edma_resume_early:
Enable the eDMA and wait for being used.

Signed-off-by: Yuan Yao <yao.yuan@freescale.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/fsl-edma.c