summaryrefslogtreecommitdiff
path: root/common/usb_pd_policy.c
diff options
context:
space:
mode:
authorAyushee <ayushee.shah@intel.com>2020-04-15 22:17:18 -0700
committerCommit Bot <commit-bot@chromium.org>2020-05-29 22:08:40 +0000
commit87063754d48a046ad9a96149996fb3cf1e02f71c (patch)
tree4dfd24ed76b15a4b243f74a7f1be85081a821096 /common/usb_pd_policy.c
parent0f6844002d1dc543bd5823b2d925a5f25bd9c1de (diff)
downloadchrome-ec-87063754d48a046ad9a96149996fb3cf1e02f71c.tar.gz
BB retimer: Correct setting USB4 cable speed
For DFP, TBT/USB4_cable_speed_support is set according to a. Discover mode SOP' response for Thunderbolt-compat mode and b. Discover ID SOP' response for USB4 mode. Ref: Burnside Bridge spec Table 13: Connection state register BUG=b:152544514 BRANCH=None TEST=make buildall -j Signed-off-by: Ayushee <ayushee.shah@intel.com> Change-Id: Ic031489878dab701177936ea8e2f50d434dba25b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2152287 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common/usb_pd_policy.c')
-rw-r--r--common/usb_pd_policy.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/common/usb_pd_policy.c b/common/usb_pd_policy.c
index d85f347351..e5df19db5d 100644
--- a/common/usb_pd_policy.c
+++ b/common/usb_pd_policy.c
@@ -223,23 +223,6 @@ enum tbt_compat_rounded_support get_tbt_rounded_support(int port)
return cable[port].cable_mode_resp.tbt_rounded;
}
-static enum usb_rev30_ss get_usb4_cable_speed(int port)
-{
- if ((cable[port].rev == PD_REV30) &&
- (get_usb_pd_cable_type(port) == IDH_PTYPE_PCABLE) &&
- ((cable[port].attr.p_rev30.ss != USB_R30_SS_U32_U40_GEN2) ||
- !IS_ENABLED(CONFIG_USB_PD_TBT_GEN3_CAPABLE))) {
- return cable[port].attr.p_rev30.ss;
- }
-
- /*
- * Converting Thunderolt-Compatible cable speed to equivalent USB4 cable
- * speed.
- */
- return cable[port].cable_mode_resp.tbt_cable_speed == TBT_SS_TBT_GEN3 ?
- USB_R30_SS_U40_GEN3 : USB_R30_SS_U32_U40_GEN2;
-}
-
uint32_t get_enter_usb_msg_payload(int port)
{
/*