diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-01-05 10:48:26 +0000 |
---|---|---|
committer | Robert Foss <robert.foss@linaro.org> | 2022-01-05 18:50:00 +0100 |
commit | b146e343a9e05605b491b1bf4a2b62a39d5638d8 (patch) | |
tree | e2a497f929306808dc01d5c622e722d55a46e185 /drivers/gpu/drm/bridge | |
parent | 96211b7c56b109a52768e6cc5e23a1f79316eca0 (diff) | |
download | linux-b146e343a9e05605b491b1bf4a2b62a39d5638d8.tar.bz2 |
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: 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>
Diffstat (limited to 'drivers/gpu/drm/bridge')
-rw-r--r-- | drivers/gpu/drm/bridge/nwl-dsi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/nwl-dsi.c b/drivers/gpu/drm/bridge/nwl-dsi.c index a7389a0facfb..fc3ad9fab867 100644 --- a/drivers/gpu/drm/bridge/nwl-dsi.c +++ b/drivers/gpu/drm/bridge/nwl-dsi.c @@ -1206,6 +1206,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; } |