Prechádzať zdrojové kódy

disp: msm: dp: delay hotplug connect notification

Delay the hotplug connect notification to check for any test
requests issued by the sink. This will avoid unwanted connection
event callbacks.

Change-Id: Id7a04dbbb5ad5b86c3791ac2db5de2c92e98fc46
Signed-off-by: Aravind Venkateswaran <[email protected]>
Signed-off-by: Tatenda Chipeperekwa <[email protected]>
Aravind Venkateswaran 5 rokov pred
rodič
commit
47cc800aff
1 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 6 0
      msm/dp/dp_display.c

+ 6 - 0
msm/dp/dp_display.c

@@ -1008,6 +1008,12 @@ static int dp_display_process_hpd_high(struct dp_display_private *dp)
 end:
 	mutex_unlock(&dp->session_lock);
 
+	/*
+	 * Delay the HPD connect notification to see if sink generates any
+	 * IRQ HPDs immediately after the HPD high.
+	 */
+	usleep_range(10000, 10100);
+
 	/*
 	 * If an IRQ HPD is pending, then do not send a connect notification.
 	 * Once this work returns, the IRQ HPD would be processed and any