Merge tag 'tag-chrome-platform-for-v5.11' of git://git.kernel.org/pub/scm/linux/kerne...
[sfrench/cifs-2.6.git] / drivers / platform / chrome / cros_ec_typec.c
index 5b8db02ab84a9e93856473ee4d8b06c333c21662..c4386861579040a8ec624c0a4aca3d1c8667efea 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);