Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: Get rid of crtc->config dereference in intel_dp_retrain_link

We're already using crtc_state here and made sure no modeset is
occurring by looking at conn_state->commit->hw_done, so there's
no need to dereference crtc->config.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181004094604.2646-12-maarten.lankhorst@linux.intel.com

+2 -2
+2 -2
drivers/gpu/drm/i915/intel_dp.c
··· 4420 4420 4421 4421 /* Suppress underruns caused by re-training */ 4422 4422 intel_set_cpu_fifo_underrun_reporting(dev_priv, crtc->pipe, false); 4423 - if (crtc->config->has_pch_encoder) 4423 + if (crtc_state->has_pch_encoder) 4424 4424 intel_set_pch_fifo_underrun_reporting(dev_priv, 4425 4425 intel_crtc_pch_transcoder(crtc), false); 4426 4426 ··· 4431 4431 intel_wait_for_vblank(dev_priv, crtc->pipe); 4432 4432 4433 4433 intel_set_cpu_fifo_underrun_reporting(dev_priv, crtc->pipe, true); 4434 - if (crtc->config->has_pch_encoder) 4434 + if (crtc_state->has_pch_encoder) 4435 4435 intel_set_pch_fifo_underrun_reporting(dev_priv, 4436 4436 intel_crtc_pch_transcoder(crtc), true); 4437 4437