dmaengine: tegra-apb: Only save channel state for those in use
authorJon Hunter <jonathanh@nvidia.com>
Fri, 13 Nov 2015 16:39:41 +0000 (16:39 +0000)
committerVinod Koul <vinod.koul@intel.com>
Sat, 5 Dec 2015 10:43:08 +0000 (16:13 +0530)
commit4aad5be04088d9b6c2783d5f0fb6b1ac7bbc45c1
treec06405095ada6e046a163d44e95e1b116cd487b6
parent68ae7a93fb0e6432baaa7c323a650b1b5461643f
dmaengine: tegra-apb: Only save channel state for those in use

Currently the tegra-apb DMA driver suspend/resume helpers, save and
restore the registers for all channels regardless of whether they are
in use or not. Change this so that only channels that have been
allocated and configured are saved and restored.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/tegra20-apb-dma.c