dmaengine: at_hdmac: improve power management routines
commitc0ba5947370a0900b1823922fc4faf41515bc901
authorNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 27 Jul 2011 12:21:29 +0000 (27 12:21 +0000)
committerVinod Koul <vinod.koul@intel.com>
Fri, 19 Aug 2011 13:09:54 +0000 (19 18:39 +0530)
treef3c32b76f48fc7f78ebd32a6d33f5e6b99e1328a
parentd8cb04b070c2a55f7201714d231cff4f8f9fbd16
dmaengine: at_hdmac: improve power management routines

Save/restore dma controller state across a suspend-resume sequence.
The prepare() function will wait for the non-cyclic channels to become idle.
It also deals with cyclic operations with the start at next period while
resuming.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_hdmac.c
drivers/dma/at_hdmac_regs.h