From 5ed32bb41f5c72ca2a3e3ce57aa8ae5991f1aba7 Mon Sep 17 00:00:00 2001 From: Tatenda Chipeperekwa Date: Mon, 13 Jul 2020 17:14:11 -0700 Subject: [PATCH] disp: msm: dp: remove check for peer_usb_comm Reset the QMP PHY into DP-only mode only when the adapter/cable connected is not multi-function capable. We remove the peer_usb_comm check since this flag is not being updated when the cable is connected. Change-Id: Iafbdf73b3ef827b757b51bfadfa6fa16b840ac27 Signed-off-by: Tatenda Chipeperekwa --- msm/dp/dp_display.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/msm/dp/dp_display.c b/msm/dp/dp_display.c index 6ba2cac3b533..a385b5e5a81f 100644 --- a/msm/dp/dp_display.c +++ b/msm/dp/dp_display.c @@ -924,8 +924,7 @@ static void dp_display_host_init(struct dp_display_private *dp) if (dp->hpd->orientation == ORIENTATION_CC2) flip = true; - reset = dp->debug->sim_mode ? false : - (!dp->hpd->multi_func || !dp->hpd->peer_usb_comm); + reset = dp->debug->sim_mode ? false : !dp->hpd->multi_func; dp->power->init(dp->power, flip); dp->hpd->host_init(dp->hpd, &dp->catalog->hpd);