[PATCH] clk: sunxi-ng: nkm: avoid 32-bit overflow in rate calculations

Romain TISSERAND romain.tisserand at gmail.com
Sat Nov 14 17:20:59 PST 2026


Hi,

Gentle ping on this fix, sent two weeks ago. It still applies as is on
sunxi/clk-for-7.5 and on 7.4-rc3.

On 32-bit sunxi the N-K-M rate math wraps above 4.29 GHz, so the clock
framework reports half the real pll-mipi rate on the A33 (594 MHz
programmed, 287 MHz reported), which broke the PocketGo S30 panel. Any
comment, or could it go in for 7.5?

Thanks,
Romain



More information about the linux-arm-kernel mailing list