]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/i915/lt_phy: Refactor LT PHY PLL handling to use explicit PLL state
authorMika Kahola <mika.kahola@intel.com>
Thu, 12 Mar 2026 08:06:37 +0000 (08:06 +0000)
committerMika Kahola <mika.kahola@intel.com>
Tue, 24 Mar 2026 07:45:49 +0000 (09:45 +0200)
commitf52bbb00deaaa137271217e158537151f6c792b6
treef46cd31fe9a800c516cbdc4223e37b7ee49aa4f0
parent0bd5b45c92c67ca43263d324d153de855e1fc6ba
drm/i915/lt_phy: Refactor LT PHY PLL handling to use explicit PLL state

The LT PHY implementation currently pulls PLL and port_clock
information directly from the CRTC state. This ties the PHY
programming logic too tightly to the CRTC state and makes it
harder to clearly express the PHY’s own PLL configuration.

Introduce an explicit "struct intel_lt_phy_pll_state" argument
for the PHY functions and update callers accordingly.

No functional change is intended — this is a preparatory cleanup for
to bring LT PHY PLL handling as part of PLL framework.

v2:  DP, HDMI 2.0, and HDMI FRL modes are port of the VDR configuration 0
    register. These modes are defined by bits 2:0. Decode these to
    differentiate DP and HDMI modes when programming PLL's. (Imre, Suraj)
v3: Pass port_clock as argument instead of recalculating it (Suraj)
v4: Fix checkpatch warning of line length exceeding 100 columns

BSpec: 744921
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patch.msgid.link/20260312080657.2648265-5-mika.kahola@intel.com
drivers/gpu/drm/i915/display/intel_lt_phy.c