瀏覽代碼

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 年之前
父節點
當前提交
47cc800aff
共有 1 個文件被更改,包括 6 次插入0 次删除
  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