drm/i915: Don't use crtc->config when reading out infoframe state
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 26 Nov 2015 16:27:07 +0000 (18:27 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 1 Dec 2015 14:01:21 +0000 (16:01 +0200)
commitcda0aaaf55b76e3515be1a9dcd7a1ca14d258ce5
tree677e12a2d003ae15062ea73cb1fe4c86f4d145fd
parent6b6985169017e554d80a8c2befdadbd81d13c2a2
drm/i915: Don't use crtc->config when reading out infoframe state

The .get_config() hooks should not reference anything in crtc->config,
everything should be based on the passed in pipe_config instead. So
don't dig out the cpu_transcoder from crtc->config on ddi platfforms,
and also avoid using the encoder->crtc link and instead look up the
pipe via pipe_config->base.crtc.

I don't think this will actually fix anything since during the initial
state readout we set up the encoder->crtc link prior to calling
.get_config(), and during the modeset state check the encoder->crtc
ought to be correct anyway since it's that state we just programmed.
But this seems the right thing to do anyway.

While at it, do some house cleaning on the local variables in the
.infoframe_enabled() hooks.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1448555227-31403-1-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_hdmi.c