Skip to content
Commit 2f6ded79 authored by Caleb Connolly's avatar Caleb Connolly Committed by Greg Kroah-Hartman
Browse files

dmaengine: qcom: bam_dma: fix runtime PM underflow

commit 0ac9c3dd upstream.

Commit dbad41e7

 ("dmaengine: qcom: bam_dma: check if the runtime pm enabled")
caused unbalanced pm_runtime_get/put() calls when the bam is
controlled remotely. This commit reverts it and just enables pm_runtime
in all cases, the clk_* functions already just nop when the clock is NULL.

Also clean up a bit by removing unnecessary bamclk null checks.

Suggested-by: default avatarStephan Gerhold <stephan@gerhold.net>
Fixes: dbad41e7

 ("dmaengine: qcom: bam_dma: check if the runtime pm enabled")
Signed-off-by: default avatarCaleb Connolly <caleb.connolly@linaro.org>
Link: https://lore.kernel.org/r/20220629140559.118537-1-caleb.connolly@linaro.org
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cb9813d7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment