drm/i915: Eliminate intel_dp.regs.dp_tp_{ctl,status}
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 29 Sep 2020 23:34:49 +0000 (02:34 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 1 Oct 2020 13:45:57 +0000 (16:45 +0300)
commitef79fafe9dae31037c48bd11676746315725452d
tree7b79046bf2530de78405e50ec6da0abfce3b08e2
parenta621860a5eb82a1b63378aac58c67fd612824013
drm/i915: Eliminate intel_dp.regs.dp_tp_{ctl,status}

Now that we've plumbed the crtc state all the way down we can
eliminate the DP_TP_{CTL,STATUS} register offsets from intel_dp,
and instead we derive them directly from the crtc state.

And thus we can get rid of the nasty hack in intel_ddi_get_config()
which mutates intel_dp during the readout.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200929233449.32323-12-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_ddi.h
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp_mst.c