dmaengine: tegra-apb: Keep clock enabled only during of DMA transfer
authorDmitry Osipenko <digetx@gmail.com>
Sun, 9 Feb 2020 16:33:49 +0000 (19:33 +0300)
committerVinod Koul <vkoul@kernel.org>
Tue, 25 Feb 2020 06:27:33 +0000 (11:57 +0530)
commit84a3f375eea984652bc2889c6b0a1ca7f849eefa
treee39a226faa73604d19b730b70dd3a605e18ab187
parentd8396c0576c6919a60bdb573ab3cd5947243d140
dmaengine: tegra-apb: Keep clock enabled only during of DMA transfer

It's a bit impractical to enable hardware's clock at the time of DMA
channel's allocation because most of DMA client drivers allocate DMA
channel at the time of the driver's probing, and thus, DMA clock is kept
always-enabled in practice, defeating the whole purpose of runtime PM.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20200209163356.6439-13-digetx@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/tegra20-apb-dma.c