]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/cx0: Track the Cx0 PHY enabled lane count in the PLL state
authorImre Deak <imre.deak@intel.com>
Mon, 17 Nov 2025 10:45:38 +0000 (12:45 +0200)
committerMika Kahola <mika.kahola@intel.com>
Wed, 19 Nov 2025 11:24:19 +0000 (13:24 +0200)
commit230d4c748113d83931a5b57c844fb71faf9eebe3
treed71f71f601878607f76d9df8bfa1cccc9c98398b
parent4f8b1e08c28945427a46b98144c20c22d0578885
drm/i915/cx0: Track the Cx0 PHY enabled lane count in the PLL state

The Cx0 PLL enable programming requires the enabled lane count. The PLL
manager framework doesn't pass the CRTC state to the PLL's enable hook,
so prepare here for the conversion to use the PLL manager, by tracking
the enabled lane count in the PLL state as well. This has the advantage,
that the enabled lane count can be verified against the PHY/PLL's
enabled TX lanes.

This also allows dropping the lane count param from the
__intel_cx0pll_enable() function, since it can retrieve this now from
the PLL state.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://lore.kernel.org/r/20251117104602.2363671-9-mika.kahola@intel.com
drivers/gpu/drm/i915/display/intel_cx0_phy.c
drivers/gpu/drm/i915/display/intel_dpll_mgr.h