summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2022-09-21 22:28:56 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-10-13 01:00:17 +0000
commiteb859ecdb21d67a74641b1485072d621087ae0ac (patch)
tree7ddb96300894fcb9664f0e4607a41c9412c5e8bf
parentffa5765555b6d684cd465db15081545cf41e2265 (diff)
downloadchrome-ec-stabilize-15183.14.B-main.tar.gz
bb_retimer: Deprecate bb_retimer_set_usb3() APIstabilize-15183.14.B-main
The bb_retimer_set_usb3() function is no longer used. Set USB_MUX_FLAG_CAN_IDLE in usb_mux.flags instead. BRANCH=none BUG=b:245753005 TEST='make buildall' passes Change-Id: I2ca48ae6e641ac7a8243a0ddac198d7234241d52 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3914996 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com>
-rw-r--r--driver/retimer/bb_retimer.c5
-rw-r--r--include/driver/retimer/bb_retimer_public.h8
2 files changed, 0 insertions, 13 deletions
diff --git a/driver/retimer/bb_retimer.c b/driver/retimer/bb_retimer.c
index a013508863..f7a4ce6164 100644
--- a/driver/retimer/bb_retimer.c
+++ b/driver/retimer/bb_retimer.c
@@ -572,11 +572,6 @@ void bb_retimer_hpd_update(const struct usb_mux *me, mux_state_t hpd_state,
mutex_unlock(&bb_retimer_lock[port]);
}
-void bb_retimer_set_usb3(const struct usb_mux *me, bool enable)
-{
- bb_set_idle_mode(me, !enable);
-}
-
#ifdef CONFIG_ZEPHYR
static void init_retimer_mutexes(void)
{
diff --git a/include/driver/retimer/bb_retimer_public.h b/include/driver/retimer/bb_retimer_public.h
index 8f5cec7421..35e289e2f2 100644
--- a/include/driver/retimer/bb_retimer_public.h
+++ b/include/driver/retimer/bb_retimer_public.h
@@ -56,12 +56,4 @@ __override_proto int bb_retimer_power_enable(const struct usb_mux *me,
void bb_retimer_hpd_update(const struct usb_mux *me, mux_state_t hpd_state,
bool *ack_required);
-/**
- * Enable/disable the USB3 state of BB retimer
- *
- * @param me Pointer to USB mux
- * @param enable BB retimer USB3 state to be changed
- */
-void bb_retimer_set_usb3(const struct usb_mux *me, bool enable);
-
#endif /* __CROS_EC_DRIVER_RETIMER_BB_RETIMER_PUBLIC_H */