Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/lt_phy: Add xe3plpd .get_freq hook

Add .get_freq function hook to support dpll framework for xe3plpd platform.

v2: Restore port clock calculation (Suraj)

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patch.msgid.link/20260312080657.2648265-15-mika.kahola@intel.com

+13
+13
drivers/gpu/drm/i915/display/intel_dpll_mgr.c
··· 4583 4583 return intel_lt_phy_pll_readout_hw_state(encoder, &dpll_hw_state->ltpll); 4584 4584 } 4585 4585 4586 + static int xe3plpd_pll_get_freq(struct intel_display *display, 4587 + const struct intel_dpll *pll, 4588 + const struct intel_dpll_hw_state *dpll_hw_state) 4589 + { 4590 + struct intel_encoder *encoder = get_intel_encoder(display, pll); 4591 + 4592 + if (drm_WARN_ON(display->drm, !encoder)) 4593 + return -EINVAL; 4594 + 4595 + return intel_lt_phy_calc_port_clock(display, &dpll_hw_state->ltpll); 4596 + } 4597 + 4586 4598 static const struct intel_dpll_funcs xe3plpd_pll_funcs = { 4587 4599 .get_hw_state = xe3plpd_pll_get_hw_state, 4600 + .get_freq = xe3plpd_pll_get_freq, 4588 4601 }; 4589 4602 4590 4603 static const struct dpll_info xe3plpd_plls[] = {