Skip to content
Snippets Groups Projects
Commit 0800880f authored by Zhang Shurong's avatar Zhang Shurong Committed by Thierry Reding
Browse files

drm/tegra: dpaux: Fix PM disable depth imbalance in tegra_dpaux_probe


The pm_runtime_enable function increases the power disable depth,
which means that we must perform a matching decrement on the error
handling path to maintain balance within the given context.
Additionally, we need to address the same issue for pm_runtime_get_sync.
We fix this by invoking pm_runtime_disable and pm_runtime_put_sync
when error returns.

Fixes: 82b81b3e ("drm/tegra: dpaux: Implement runtime PM")
Signed-off-by: default avatarZhang Shurong <zhang_shurong@foxmail.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/tencent_B13DB7F6C0023C46157250A524966F326A09@qq.com
parent 11aa6d78
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment