[PATCH 1/2] drm/i915/display: Fix get_ana_cp_int_prop() argument type

Nautiyal, Ankit K ankit.k.nautiyal at intel.com
Tue May 27 04:50:40 UTC 2025


On 5/13/2025 2:08 PM, Dibin Moolakadan Subrahmanian wrote:
> Change get_ana_cp_int_prop() vco_clk argument type from u32 to u64.
> vco_clk is decalared as u64 in the caller and there are scearios in
> which vco_clk will exceed max u32.

Agree with the change, lets have this meld with the next patch.


Regards,

Ankit

>
> Signed-off-by: Dibin Moolakadan Subrahmanian <dibin.moolakadan.subrahmanian at intel.com>
> ---
>   drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c b/drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
> index c6321dafef4f..41c6c111af1d 100644
> --- a/drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
> +++ b/drivers/gpu/drm/i915/display/intel_snps_hdmi_pll.c
> @@ -46,7 +46,7 @@ static s64 interp(s64 x, s64 x1, s64 x2, s64 y1, s64 y2)
>   	return (y1 + DIV_ROUND_UP_ULL(dydx * (x - x1), 100000));
>   }
>   
> -static void get_ana_cp_int_prop(u32 vco_clk,
> +static void get_ana_cp_int_prop(u64 vco_clk,
>   				u32 refclk_postscalar,
>   				int mpll_ana_v2i,
>   				int c, int a,


More information about the Intel-xe mailing list