drm/i915/lt_phy: Add xe3plpd .compare_hw_state hook

Add .compare_hw_state function pointer for xe3plpd platform
to support dpll framework.

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patch.msgid.link/20260312080657.2648265-13-mika.kahola@intel.com
This commit is contained in:
Mika Kahola 2026-03-12 08:06:45 +00:00
parent a8acd1a61a
commit 37115f773c

View File

@ -4655,6 +4655,15 @@ static void xe3plpd_dump_hw_state(struct drm_printer *p,
intel_lt_phy_dump_hw_state(p, &dpll_hw_state->ltpll);
}
static bool xe3plpd_compare_hw_state(const struct intel_dpll_hw_state *_a,
const struct intel_dpll_hw_state *_b)
{
const struct intel_lt_phy_pll_state *a = &_a->ltpll;
const struct intel_lt_phy_pll_state *b = &_b->ltpll;
return intel_lt_phy_pll_compare_hw_state(a, b);
}
__maybe_unused
static const struct intel_dpll_mgr xe3plpd_pll_mgr = {
.dpll_info = xe3plpd_plls,
@ -4664,6 +4673,7 @@ static const struct intel_dpll_mgr xe3plpd_pll_mgr = {
.update_active_dpll = icl_update_active_dpll,
.update_ref_clks = icl_update_dpll_ref_clks,
.dump_hw_state = xe3plpd_dump_hw_state,
.compare_hw_state = xe3plpd_compare_hw_state,
};
/**