]> 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)
commite6b9c45a3a6cd2f16d557225010577e43ebc6e32
treec06405095ada6e046a163d44e95e1b116cd487b6
parentc628975ea1b7c73ada1d278c9f19ace4e66c1749
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