dma: ste_dma40: Fixup system suspend/resume
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 23 Apr 2014 19:52:04 +0000 (21:52 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 7 May 2014 06:20:27 +0000 (11:50 +0530)
commitc906a3ec458742c95850c0c1cde9e8b68df25c01
tree94a116287bf87c8dbd1bbfd94f91862ff5c70c1c
parent123e4ca172707267eef5fbe9f0c58bd4c412685c
dma: ste_dma40: Fixup system suspend/resume

Make sure to handle register context save/restore when needed from
system PM callbacks.

Previously we solely trusted the device to reside in in-active state
while the system suspend callback were invoked, which is just too
optimistic.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ste_dma40.c