Skip to content

Commit 0640f47

Browse files
jhovoldAbhinav Kumar
authored andcommitted
drm/msm/dp: fix runtime PM leak on disconnect
Make sure to put the runtime PM usage count (and suspend) also when receiving a disconnect event while in the ST_MAINLINK_READY state. This specifically avoids leaking a runtime PM usage count on every disconnect with display servers that do not automatically enable external displays when receiving a hotplug notification. 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/582744/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abhinav Kumar <[email protected]>
1 parent 4be445f commit 0640f47

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
@@ -629,6 +629,7 @@ static int dp_hpd_unplug_handle(struct dp_display_private *dp, u32 data)
629629
dp_display_host_phy_exit(dp);
630630
dp->hpd_state = ST_DISCONNECTED;
631631
dp_display_notify_disconnect(&dp->dp_display.pdev->dev);
632+
pm_runtime_put_sync(&pdev->dev);
632633
mutex_unlock(&dp->event_mutex);
633634
return 0;
634635
}

0 commit comments

Comments
 (0)