]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/i915: Move intel_dpll_get_hw_state() into the hsw+ platform specific functions
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 9 Nov 2020 23:12:37 +0000 (01:12 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 16 Nov 2020 19:42:19 +0000 (21:42 +0200)
commitb97fcaeee23c1db1dbfffbfb946a5cceeede5958
treecf9cb7d930f149fdc1a5b4938cd4a0478ba1e9c4
parentfdbc5d682e75ed53e923627d7aa79ff0cb134d79
drm/i915: Move intel_dpll_get_hw_state() into the hsw+ platform specific functions

On icl+ we want to populate both crtc_state.{shared_dpll,dpll_hw_state}
and crtc_state.port_dplls[] during readout, whereas on pre-icl we
want to leave the latter stuff untouched. Rather than adding more ifs
into hsw_get_ddi_port_state() to copy the DPLL hw state around let's
just move the whole dpll readout into hsw_get_ddi_dpll() & co.
Slightly repetitive, but meh.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201109231239.17002-2-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/display/intel_display.c