@@ -3638,16 +3638,6 @@ intel_dp_set_link_train(struct intel_dp *intel_dp,
return ret == len;
}
-static bool
-intel_dp_reset_link_train(struct intel_dp *intel_dp,
- uint8_t dp_train_pat)
-{
- if (!intel_dp->train_set_valid)
- memset(intel_dp->train_set, 0, sizeof(intel_dp->train_set));
- intel_dp_set_signal_levels(intel_dp, &intel_dp->DP);
- return intel_dp_set_link_train(intel_dp, dp_train_pat);
-}
-
static void
intel_dp_update_signal_levels(struct intel_dp *intel_dp)
{
@@ -3662,6 +3652,16 @@ intel_dp_update_signal_levels(struct intel_dp *intel_dp)
}
static bool
+intel_dp_reset_link_train(struct intel_dp *intel_dp,
+ uint8_t dp_train_pat)
+{
+ if (!intel_dp->train_set_valid)
+ memset(intel_dp->train_set, 0, sizeof(intel_dp->train_set));
+ intel_dp_update_signal_levels(intel_dp);
+ return intel_dp_set_link_train(intel_dp, dp_train_pat);
+}
+
+static bool
intel_dp_update_link_train(struct intel_dp *intel_dp)
{
int ret;