dmaengine: mv_xor: add suspend/resume support
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 22 Dec 2015 10:43:29 +0000 (11:43 +0100)
committerVinod Koul <vinod.koul@intel.com>
Wed, 6 Jan 2016 10:12:27 +0000 (15:42 +0530)
commit8b648436eb45c1f561164b24aafd35fb2bee9cfc
tree5006799243ec01f2b89991b6586938d94a3ff892
parent81aafb3e0e16bcca060efa6b5e477e812e4154bc
dmaengine: mv_xor: add suspend/resume support

This commit adds suspend/resume support to the mv_xor driver. The
config and interrupt mask registers must be saved and restored, and
upon resume, the MBus windows configuration must also be done again.

Tested on Armada 388 GP, with a RAID 5 array, accessed before and
after a suspend to RAM cycle.

Based on work from Ofer Heifetz and Lior Amsalem.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mv_xor.c
drivers/dma/mv_xor.h