提交 f24df829 编写于 作者: M Miaoqian Lin 提交者: Zheng Zengkai

drm/bridge: nwl-dsi: Fix PM disable depth imbalance in nwl_dsi_probe

stable inclusion
from stable-v5.10.110
commit d9d61beb21d703e0d2d93314ca0b70d63c210378
bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d9d61beb21d703e0d2d93314ca0b70d63c210378

--------------------------------

[ Upstream commit b146e343 ]

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: 44cfc623 ("drm/bridge: Add NWL MIPI DSI host controller support")
Signed-off-by: NMiaoqian Lin <linmq006@gmail.com>
Signed-off-by: NRobert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220105104826.1418-1-linmq006@gmail.comReviewed-by: NRobert Foss <robert.foss@linaro.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYu Liao <liaoyu15@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 5caa214f
......@@ -1188,6 +1188,7 @@ static int nwl_dsi_probe(struct platform_device *pdev)
ret = nwl_dsi_select_input(dsi);
if (ret < 0) {
pm_runtime_disable(dev);
mipi_dsi_host_unregister(&dsi->dsi_host);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册