drm/i915: Move the g45 PEG band gap HPD workaround to the HPD code
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 12 Oct 2023 12:40:33 +0000 (15:40 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 31 Oct 2023 06:31:00 +0000 (08:31 +0200)
commitb0462e94c964145c1962876f18e99f82fb4e6e9c
tree4278c045b61a6302222dde2b016575edbda1511c
parent7880d41c55f1e177a88c275d2e3ccec4debfcb51
drm/i915: Move the g45 PEG band gap HPD workaround to the HPD code

We are asked to reprogram PEG_BAND_GAP_DATA prior to enabling
hotplug detection on the g45 HDMI/DP ports. Currently we do said
reprogamming from the DP/HDMI connector initialization functions.
That code should be mostly platform agnostic so clearly not the
best place for this. Move the workaround to the place where we
actually enable HPD detection.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231012124033.26983-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_hdmi.c
drivers/gpu/drm/i915/display/intel_hotplug_irq.c