]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
dmaengine: tegra210-adma: fix pm runtime unbalance
authorDongliang Mu <mudongliangabcd@gmail.com>
Thu, 21 Oct 2021 03:05:38 +0000 (11:05 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 7 Dec 2021 06:33:31 +0000 (07:33 +0100)
commit735300496f568105c131f0fb014b849e81008f17
treed88606d6a3a3dd47bbdb3b013453374f677d5fc5
parentf67dd6df0f26681d456704513b3e353e22e6fffb
dmaengine: tegra210-adma: fix pm runtime unbalance

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit c5a51fc89c0103c03b8a54cf12dac7d014b3a2bf ]

The previous commit 059e969c2a7d ("dmaengine: tegra210-adma: Using
pm_runtime_resume_and_get to replace open coding") forgets to replace
the pm_runtime_get_sync in the tegra_adma_probe, but removes the
pm_runtime_put_noidle.

Fix this by continuing to replace pm_runtime_get_sync with
pm_runtime_resume_and_get in tegra_adma_probe.

Fixes: 059e969c2a7d ("dmaengine: tegra210-adma: Using pm_runtime_resume_and_get to replace open coding")
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20211021030538.3465287-1-mudongliangabcd@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/dma/tegra210-adma.c