]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7d4914eb7d0762898af419f43a7ca7d5b39830f0
treec06405095ada6e046a163d44e95e1b116cd487b6
parentaac9c1ac34b9aa12535ff15eecc124c61be00af9
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