> Subject: [CI 24/32] drm/i915/display: Add .compare_hw_state
> 
> Add .compare_hw_state function pointer for MTL+ platforms to support dpll
> framework.
> 
> Signed-off-by: Mika Kahola <[email protected]>

LGTM,
Reviewed-by: Suraj Kandpal <[email protected]>

> ---
>  drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c
> b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c
> index d4b58c426044..d22771cf2ebd 100644
> --- a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c
> +++ b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c
> @@ -4449,6 +4449,15 @@ static void mtl_dump_hw_state(struct
> drm_printer *p,
>       intel_cx0pll_dump_hw_state(p, &dpll_hw_state->cx0pll);  }
> 
> +static bool mtl_compare_hw_state(const struct intel_dpll_hw_state *_a,
> +                              const struct intel_dpll_hw_state *_b) {
> +     const struct intel_cx0pll_state *a = &_a->cx0pll;
> +     const struct intel_cx0pll_state *b = &_b->cx0pll;
> +
> +     return intel_cx0pll_compare_hw_state(a, b); }
> +
>  __maybe_unused
>  static const struct intel_dpll_mgr mtl_pll_mgr = {
>       .dpll_info = mtl_plls,
> @@ -4458,6 +4467,7 @@ static const struct intel_dpll_mgr mtl_pll_mgr = {
>       .update_active_dpll = icl_update_active_dpll,
>       .update_ref_clks = icl_update_dpll_ref_clks,
>       .dump_hw_state = mtl_dump_hw_state,
> +     .compare_hw_state = mtl_compare_hw_state,
>  };
> 
>  /**
> --
> 2.34.1

Reply via email to