dmaengine: mv_xor_v2: add support for suspend/resume
authorHanna Hawa <hannah@marvell.com>
Fri, 5 May 2017 09:57:53 +0000 (11:57 +0200)
committerVinod Koul <vinod.koul@intel.com>
Sun, 14 May 2017 12:54:46 +0000 (18:24 +0530)
commitecfa77145b13138677c25b4c117d5043bb98cbc8
treecfede9c6b825de8721ce6826e3aa67323744a2b1
parent35e34480c5177f96d822b8ea8e9e42b5fcca6ff6
dmaengine: mv_xor_v2: add support for suspend/resume

This commit adds the support for suspend/resume in the mv_xor_v2
driver. The suspend suspend function disables the XOR engine after the
DMA stack has handled all pending descriptors in the queue. The resume
function re-configures the XOR engine and re-enables the engine.

Signed-off-by: Hanna Hawa <hannah@marvell.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mv_xor_v2.c