]> git.baikalelectronics.ru Git - kernel.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)
committerRobert Foss <robert.foss@linaro.org>
Wed, 5 Jan 2022 17:50:00 +0000 (18:50 +0100)
commit7e29f88c3252a86bbfe182a8648debb33c68d20d
treee2a497f929306808dc01d5c622e722d55a46e185
parent3fa075eb40bf6bbfb5cdd9d5fb5133e99682027d
drm/bridge: nwl-dsi: Fix PM disable depth imbalance in nwl_dsi_probe

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: 3790c3fc97c0 ("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>
drivers/gpu/drm/bridge/nwl-dsi.c