]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/bridge: nwl-dsi: Fix PM disable depth imbalance in nwl_dsi_probe
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 5 Jan 2022 10:48:26 +0000 (10:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:54 +0000 (13:57 +0200)
commit7b32cff290378c8bf3398e06675dd39a655c9cf3
tree2d56bdc97ef359148ad24e8ddc265b909d9472fe
parentf1a22a077197867ed185d0321273c26dc19b664d
drm/bridge: nwl-dsi: Fix PM disable depth imbalance in nwl_dsi_probe

[ Upstream commit b146e343a9e05605b491b1bf4a2b62a39d5638d8 ]

The pm_runtime_enable will increase power disable depth.
Thus a pairing decrement is needed on the error handling
path to keep it balanced according to context.

Fixes: 44cfc6233447 ("drm/bridge: Add NWL MIPI DSI host controller support")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220105104826.1418-1-linmq006@gmail.com
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bridge/nwl-dsi.c