From 1d1ce83ab175502a8988bd0dc4c626b4f63be4f7 Mon Sep 17 00:00:00 2001 From: Tatenda Chipeperekwa Date: Tue, 3 Sep 2019 18:01:51 -0700 Subject: [PATCH] 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 --- msm/dp/dp_display.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/msm/dp/dp_display.c b/msm/dp/dp_display.c index dfc1fbabe2..7f898d2ef1 100644 --- a/msm/dp/dp_display.c +++ b/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);