]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: tegra-apb: Ensure that clock is enabled during of DMA synchronization
authorDmitry Osipenko <digetx@gmail.com>
Sun, 26 Apr 2020 19:08:35 +0000 (22:08 +0300)
committerVinod Koul <vkoul@kernel.org>
Mon, 27 Apr 2020 16:05:35 +0000 (21:35 +0530)
commit6024924250ff30688ba97953e74e28a6f7fc34b8
treedb56c496be3d96cc4ac4c58cd331f8fba8abbb84
parenteb6cba2a9218a6e0190f36b9fcd92bffa7e39287
dmaengine: tegra-apb: Ensure that clock is enabled during of DMA synchronization

DMA synchronization hook checks whether interrupt is raised by testing
corresponding bit in a hardware status register, and thus, clock should
be enabled in this case, otherwise CPU may hang if synchronization is
invoked while Runtime PM is in suspended state. This patch resumes the RPM
during of the DMA synchronization process in order to avoid potential
problems. It is a minor clean up of a previous commit, no real problem is
fixed by this patch because currently RPM is always in a resumed state
while DMA is synchronized, although this may change in the future.

Fixes: 5b56082c0e5c ("dmaengine: tegra-apb: Improve DMA synchronization")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20200426190835.21950-1-digetx@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/tegra20-apb-dma.c