diff options
author | Diana Z <dzigterman@chromium.org> | 2023-03-10 10:21:54 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-14 18:08:21 +0000 |
commit | ee78d5668b5b3af7b7bf2e17e8e5c9a736b49b1f (patch) | |
tree | f428a1117a50f52195d1c7177dea5fa146963677 | |
parent | a850d691cb80c27ea33de7a3f366134d27a88a4a (diff) | |
download | chrome-ec-ee78d5668b5b3af7b7bf2e17e8e5c9a736b49b1f.tar.gz |
TCPM: Remove unused USB2 cable function
Remove this function which is not called from anywhere.
BRANCH=None
BUG=b:267964449
TEST=CQ+1
Change-Id: I35bc04fd826fb3d66d4a3f66fabf7e461e71b6e1
Signed-off-by: Diana Z <dzigterman@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4330170
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
-rw-r--r-- | common/usb_pd_discovery.c | 11 | ||||
-rw-r--r-- | include/usb_pd.h | 8 |
2 files changed, 0 insertions, 19 deletions
diff --git a/common/usb_pd_discovery.c b/common/usb_pd_discovery.c index 3fad82d10d..d7f74e3190 100644 --- a/common/usb_pd_discovery.c +++ b/common/usb_pd_discovery.c @@ -426,17 +426,6 @@ enum idh_ptype get_usb_pd_cable_type(int port) return disc->identity.idh.product_type; } -bool is_usb2_cable_support(int port) -{ - const struct pd_discovery *disc = - pd_get_am_discovery(port, TCPCI_MSG_SOP_PRIME); - - return disc->identity.idh.product_type == IDH_PTYPE_PCABLE || - pd_get_vdo_ver(port, TCPCI_MSG_SOP_PRIME) < VDM_VER20 || - disc->identity.product_t2.a2_rev30.usb_20_support == - USB2_SUPPORTED; -} - bool is_cable_speed_gen2_capable(int port) { const struct pd_discovery *disc = diff --git a/include/usb_pd.h b/include/usb_pd.h index 0b30ff11a0..e85c5cc80a 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -2338,14 +2338,6 @@ int pd_ufp_get_dp_opos(int port); void pd_ufp_enable_hpd_send(int port); /* - * Returns True if cable supports USB2 connection - * - * @param port USB-C port number - * @return True is usb2_supported, false otherwise - */ -bool is_usb2_cable_support(int port); - -/* * Checks if Cable speed is Gen2 or better * * @param port USB-C port number |