disp: msm: dp: turn off aux switch on dp cable disconnect
The dp_display_disconnect_sync is disabling the aux switch during the attention hpd low processing. Ideally, the aux switch needs to be turned off only when the dp cable is disconnected. With aux switch getting turned off even while cable is connected is leading to HDCP compliance test failure. This change will turn off aux switch only when the cable is disconnected. It reverts the commit id b6466ca7f597396cd2ecb3623d059435dfb0e4c6. Change-Id: I90cc5f31b2be1afda61f74ea4e0a44332811ead3 Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com> Signed-off-by: Andrew Bartfeld <quic_abartfel@quicinc.com>
Цей коміт міститься в:

зафіксовано
Andrew Bartfeld

джерело
2751ec018d
коміт
7d74c23aa4
@@ -1675,10 +1675,6 @@ static void dp_display_disconnect_sync(struct dp_display_private *dp)
|
||||
cancel_work_sync(&dp->attention_work);
|
||||
flush_workqueue(dp->wq);
|
||||
|
||||
if (!dp->debug->sim_mode && !dp->no_aux_switch
|
||||
&& !dp->parser->gpio_aux_switch && dp->aux->switch_configure)
|
||||
dp->aux->switch_configure(dp->aux, false, ORIENTATION_NONE);
|
||||
|
||||
/*
|
||||
* Delay the teardown of the mainlink for better interop experience.
|
||||
* It is possible that certain sinks can issue an HPD high immediately
|
||||
@@ -1729,6 +1725,13 @@ static int dp_display_usbpd_disconnect_cb(struct device *dev)
|
||||
if (dp->debug->psm_enabled && dp_display_state_is(DP_STATE_READY))
|
||||
dp->link->psm_config(dp->link, &dp->panel->link_info, true);
|
||||
|
||||
dp->ctrl->abort(dp->ctrl, true);
|
||||
dp->aux->abort(dp->aux, true);
|
||||
|
||||
if (!dp->debug->sim_mode && !dp->no_aux_switch
|
||||
&& !dp->parser->gpio_aux_switch && dp->aux->switch_configure)
|
||||
dp->aux->switch_configure(dp->aux, false, ORIENTATION_NONE);
|
||||
|
||||
dp_display_disconnect_sync(dp);
|
||||
|
||||
mutex_lock(&dp->session_lock);
|
||||
|
Посилання в новій задачі
Заблокувати користувача