فهرست منبع

disp: msm: dp: remove session lock for power state update

Remove session lock for power state update to improve functionality
for fast hotplug use cases. This allows the controller and aux modules
to be updated asynchronously based on hotplug state. For example,
in disconnected state all aux transactions will be aborted.
Updates to the power state can be done without the session lock
since this path is only exercised during compliance testing.

Change-Id: Ibe175624ef56d9f7b953b9b54928682f1cac906a
Signed-off-by: Tatenda Chipeperekwa <[email protected]>
Tatenda Chipeperekwa 5 سال پیش
والد
کامیت
1d1ce83ab1
1فایلهای تغییر یافته به همراه0 افزوده شده و 2 حذف شده
  1. 0 2
      msm/dp/dp_display.c

+ 0 - 2
msm/dp/dp_display.c

@@ -1082,10 +1082,8 @@ static int dp_display_usbpd_disconnect_cb(struct device *dev)
 
 	dp_display_state_remove(DP_STATE_CONFIGURED);
 
-	mutex_lock(&dp->session_lock);
 	if (dp->debug->psm_enabled && dp_display_state_is(DP_STATE_READY))
 		dp->link->psm_config(dp->link, &dp->panel->link_info, true);
-	mutex_unlock(&dp->session_lock);
 
 	dp_display_disconnect_sync(dp);