]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit81df2780c7ee91dea7298f2b219b1cf045fdec35
tree5006799243ec01f2b89991b6586938d94a3ff892
parent4e643fab95f08dad0b7a2d9140b82bbb03f8f1a2
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