Skip to content

Commit e86750b

Browse files
jhovoldAbhinav Kumar
authored andcommitted
drm/msm/dp: fix runtime PM leak on connect failure
Make sure to balance the runtime PM usage counter (and suspend) before returning on connect failures (e.g. DPCD read failures after a spurious connect event or if link training fails). Fixes: 5814b8b ("drm/msm/dp: incorporate pm_runtime framework into DP driver") Cc: [email protected] # 6.8 Cc: Kuogee Hsieh <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/582746/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abhinav Kumar <[email protected]>
1 parent 0640f47 commit e86750b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/msm/dp/dp_display.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ static int dp_hpd_plug_handle(struct dp_display_private *dp, u32 data)
572572
ret = dp_display_usbpd_configure_cb(&pdev->dev);
573573
if (ret) { /* link train failed */
574574
dp->hpd_state = ST_DISCONNECTED;
575+
pm_runtime_put_sync(&pdev->dev);
575576
} else {
576577
dp->hpd_state = ST_MAINLINK_READY;
577578
}

0 commit comments

Comments
 (0)