platform/chrome: cros_ec_typec: Correct the Thunderbolt rounded/non-rounded cable...
[sfrench/cifs-2.6.git] / drivers / platform / chrome / cros_ec_typec.c
index 31be31161350ed3cb7b006648d593ab0d3a23753..8111ed1fc5743bb598a35170cf4caa310174dd63 100644 (file)
@@ -438,8 +438,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);