dmaengine: sirf: add PM entries for sleep and runtime
authorBarry Song <21cnbao@gmail.com>
Tue, 30 Jul 2013 09:44:34 +0000 (17:44 +0800)
committerVinod Koul <vinod.koul@intel.com>
Tue, 13 Aug 2013 11:31:01 +0000 (17:01 +0530)
commit2a76689bcaecf35391e6ddc8a00c09c79d6d5857
tree8723262ec9fdcc44d057636bd461e8e998f19e72
parentd4adcc0160404c3237fe6ffa09dd2dd039dd3975
dmaengine: sirf: add PM entries for sleep and runtime

this patch adds PM ops entries in sirf-dma drivers, so that this
driver can support suspend/resume, hibernation and runtime PM.

while suspending, sirf-dma will lose all registers, so we save
them at suspend and restore in resume for active channels.

Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Rongjun Ying <Rongjun.Ying@csr.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sirf-dma.c