瀏覽代碼

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);