Merge tag 'tag-chrome-platform-for-v5.11' of git://git.kernel.org/pub/scm/linux/kerne...
[linux-2.6-microblaze.git] / drivers / platform / chrome / cros_ec_typec.c
index 5b8db02..c438686 100644 (file)
@@ -411,8 +411,7 @@ static int cros_typec_enable_tbt(struct cros_typec_data *typec,
        if (pd_ctrl->control_flags & USB_PD_CTRL_ACTIVE_LINK_UNIDIR)
                data.cable_mode |= TBT_CABLE_LINK_TRAINING;
 
-       if (pd_ctrl->cable_gen)
-               data.cable_mode |= TBT_CABLE_ROUNDED;
+       data.cable_mode |= TBT_SET_CABLE_ROUNDED(pd_ctrl->cable_gen);
 
        /* Enter Mode VDO */
        data.enter_vdo = TBT_SET_CABLE_SPEED(pd_ctrl->cable_speed);