diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/usb_pd_host_cmd.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/common/usb_pd_host_cmd.c b/common/usb_pd_host_cmd.c index c08332621b..e35f6241f8 100644 --- a/common/usb_pd_host_cmd.c +++ b/common/usb_pd_host_cmd.c @@ -307,7 +307,6 @@ static enum ec_status hc_usb_pd_control(struct host_cmd_handler_args *args) struct ec_response_usb_pd_control_v1 *r_v1 = args->response; struct ec_response_usb_pd_control *r = args->response; const char *task_state_name; - mux_state_t mux_state; if (p->port >= board_get_usb_pd_port_count()) return EC_RES_INVALID_PARAM; @@ -372,18 +371,8 @@ static enum ec_status hc_usb_pd_control(struct host_cmd_handler_args *args) r_v2->control_flags = get_pd_control_flags(p->port); if (IS_ENABLED(CONFIG_USB_PD_ALT_MODE_DFP)) { r_v2->dp_mode = get_dp_pin_mode(p->port); - mux_state = usb_mux_get(p->port); - if (mux_state & USB_PD_MUX_USB4_ENABLED) { - r_v2->cable_speed = - get_usb4_cable_speed(p->port); - } - if (mux_state & USB_PD_MUX_TBT_COMPAT_ENABLED || - mux_state & USB_PD_MUX_USB4_ENABLED) { - r_v2->cable_speed = - get_tbt_cable_speed(p->port); - r_v2->cable_gen = - get_tbt_rounded_support(p->port); - } + r_v2->cable_speed = get_tbt_cable_speed(p->port); + r_v2->cable_gen = get_tbt_rounded_support(p->port); } if (args->version == 1) |