From 514f527666d43fd76460f66bfce1b332763850b2 Mon Sep 17 00:00:00 2001 From: Sam Hurst Date: Mon, 3 Feb 2020 13:38:36 -0800 Subject: TCPMv2: Remove tcpm_init from usb_prl state machine The tc state machine configures the ss mux and then starts the usb_prl state machine and when usb_prl starts, it calls tcpm_init, resulting the ss mux being disabled. BUG=b:147255678 BUG=chromium:1046851 BRANCH=none TEST=make -j buildall manual: plugged in USB3 Patriate USB drive and lsusb -v. Result was bcdUSB 3.10 Change-Id: I8510979739cac47098af48f46eae9e429f7502d0 Signed-off-by: Sam Hurst Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2036592 Reviewed-by: Aseda Aboagye --- common/usbc/usb_prl_sm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/common/usbc/usb_prl_sm.c b/common/usbc/usb_prl_sm.c index 174746a70d..0b2e43c36f 100644 --- a/common/usbc/usb_prl_sm.c +++ b/common/usbc/usb_prl_sm.c @@ -468,7 +468,6 @@ static void prl_tx_phy_layer_reset_entry(const int port) || IS_ENABLED(CONFIG_USB_TYPEC_VPD)) { vpd_rx_enable(1); } else { - tcpm_init(port); tcpm_clear_pending_messages(port); tcpm_set_rx_enable(port, 1); } -- cgit v1.2.1