diff options
author | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2015-10-23 06:01:50 -0400 |
---|---|---|
committer | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2015-11-05 08:14:56 -0500 |
commit | e588fa18c1cc490fa75c0b4bd1d4f7758ccd33cf (patch) | |
tree | ab8cce2e6c123cd5a08b03635ba51347b5dc55e7 /drivers/gpu/drm/i915/intel_dp_link_training.c | |
parent | ad64217b030c6f7af3613577bcefeef8a5ad91be (diff) |
drm/i915: Make intel_dp_source_supports_hbr2() take an intel_dp pointer
The function name implies it should get intel_dp, and it mostly used
where there is an intel_dp in the context.
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1445594525-7174-8-git-send-email-ander.conselvan.de.oliveira@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp_link_training.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp_link_training.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp_link_training.c b/drivers/gpu/drm/i915/intel_dp_link_training.c index bb036d51f93f..88887938e0bf 100644 --- a/drivers/gpu/drm/i915/intel_dp_link_training.c +++ b/drivers/gpu/drm/i915/intel_dp_link_training.c | |||
@@ -218,8 +218,6 @@ intel_dp_link_training_clock_recovery(struct intel_dp *intel_dp) | |||
218 | static void | 218 | static void |
219 | intel_dp_link_training_channel_equalization(struct intel_dp *intel_dp) | 219 | intel_dp_link_training_channel_equalization(struct intel_dp *intel_dp) |
220 | { | 220 | { |
221 | struct intel_digital_port *dig_port = dp_to_dig_port(intel_dp); | ||
222 | struct drm_device *dev = dig_port->base.base.dev; | ||
223 | bool channel_eq = false; | 221 | bool channel_eq = false; |
224 | int tries, cr_tries; | 222 | int tries, cr_tries; |
225 | uint32_t training_pattern = DP_TRAINING_PATTERN_2; | 223 | uint32_t training_pattern = DP_TRAINING_PATTERN_2; |
@@ -233,7 +231,7 @@ intel_dp_link_training_channel_equalization(struct intel_dp *intel_dp) | |||
233 | * Due to WaDisableHBR2 SKL < B0 is the only exception where TPS3 is | 231 | * Due to WaDisableHBR2 SKL < B0 is the only exception where TPS3 is |
234 | * supported but still not enabled. | 232 | * supported but still not enabled. |
235 | */ | 233 | */ |
236 | if (intel_dp_source_supports_hbr2(dev) && | 234 | if (intel_dp_source_supports_hbr2(intel_dp) && |
237 | drm_dp_tps3_supported(intel_dp->dpcd)) | 235 | drm_dp_tps3_supported(intel_dp->dpcd)) |
238 | training_pattern = DP_TRAINING_PATTERN_3; | 236 | training_pattern = DP_TRAINING_PATTERN_3; |
239 | else if (intel_dp->link_rate == 540000) | 237 | else if (intel_dp->link_rate == 540000) |