summaryrefslogtreecommitdiffstats
path: root/drivers/dma/mv_xor.h
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-12-22 11:43:29 +0100
committerVinod Koul <vinod.koul@intel.com>2016-01-06 11:12:27 +0100
commit8b648436eb45c1f561164b24aafd35fb2bee9cfc (patch)
tree5006799243ec01f2b89991b6586938d94a3ff892 /drivers/dma/mv_xor.h
parentdmaengine: mv_xor: de-duplicate mv_chan_set_mode*() (diff)
downloadlinux-8b648436eb45c1f561164b24aafd35fb2bee9cfc.tar.xz
linux-8b648436eb45c1f561164b24aafd35fb2bee9cfc.zip
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>
Diffstat (limited to 'drivers/dma/mv_xor.h')
-rw-r--r--drivers/dma/mv_xor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/mv_xor.h b/drivers/dma/mv_xor.h
index 34389146bf13..c19fe30e5ae9 100644
--- a/drivers/dma/mv_xor.h
+++ b/drivers/dma/mv_xor.h
@@ -125,6 +125,7 @@ struct mv_xor_chan {
char dummy_src[MV_XOR_MIN_BYTE_COUNT];
char dummy_dst[MV_XOR_MIN_BYTE_COUNT];
dma_addr_t dummy_src_addr, dummy_dst_addr;
+ u32 saved_config_reg, saved_int_mask_reg;
};
/**