Sfoglia il codice sorgente

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 anni fa
parent
commit
1d1ce83ab1
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  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);
 	dp_display_state_remove(DP_STATE_CONFIGURED);
 
 
-	mutex_lock(&dp->session_lock);
 	if (dp->debug->psm_enabled && dp_display_state_is(DP_STATE_READY))
 	if (dp->debug->psm_enabled && dp_display_state_is(DP_STATE_READY))
 		dp->link->psm_config(dp->link, &dp->panel->link_info, true);
 		dp->link->psm_config(dp->link, &dp->panel->link_info, true);
-	mutex_unlock(&dp->session_lock);
 
 
 	dp_display_disconnect_sync(dp);
 	dp_display_disconnect_sync(dp);