[PATCH 1/2] drm/i915/display: Fix get_ana_cp_int_prop() argument type
Dibin Moolakadan Subrahmanian
dibin.moolakadan.subrahmanian at intel.com
Tue May 13 08:38:02 UTC 2025
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.
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,
--
2.43.0
More information about the Intel-gfx
mailing list