drm/i915: Stop requiring PLL index == PLL ID
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 3 Oct 2023 20:06:17 +0000 (23:06 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 4 Oct 2023 13:46:25 +0000 (16:46 +0300)
commit027c57017795de145b8800f00665aae9a313ab26
tree84cc6317cb40f07b27be028811d8c0408144eb05
parent079d0b01bc5943dd19c7cb8fa9a99976217cc4c6
drm/i915: Stop requiring PLL index == PLL ID

There's no good reason to keep around this PLL index == PLL ID
footgun. Get rid of it.

Both i915->shared_dplls[] and state->shared_dpll[] are indexed
by the same thing now, which is just the index we get at
initialization from dpll_mgr->dpll_info[]. The rest is all about
PLL IDs now.

v2: Add pll->index to mimic drm_crtc & co.
    Remove the comment saying ID should match the index
v3: s/i/pll->index/ in debugfs loop (Jani)

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231003200620.11633-2-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_display_debugfs.c
drivers/gpu/drm/i915/display/intel_dpll_mgr.c
drivers/gpu/drm/i915/display/intel_dpll_mgr.h
drivers/gpu/drm/i915/display/intel_pch_refclk.c