]> git.baikalelectronics.ru Git - 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)
commit0d0b0bc02de9f8eddd7e6ec6edf244ffbdc44fc7
treecf9cb7d930f149fdc1a5b4938cd4a0478ba1e9c4
parent9a16e4bc1f73d736ef2f3fb9147358704dae306e
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