Hello, On Tue, Oct 20, 2026 at 03:39:38PM +0200, Uwe Kleine-König wrote: > tegra_pwm_config() is called with u64 values passed for duty_ns and > period_ns in tegra_pwm_apply(). Make these parameters u64 instead of int > to not lose the upper bits for bigger values. If such a discard happens > the values that are written to hardware become wrong, or (if the > discarded period value becomes 0) a division by zero happens. > > Adapt the math functions accordingly to not let the now potentially > bigger values result in overflows. While touching these, also limit the > scope of the required_clk_rate variable. > > Reported-by: Sashiko > Link: https://sashiko.dev/#/bug/linux-5c5b97d6-4da6-4d06-9dc7-957419dcd832 > Fixes: fd3ddd4355c0 ("pwm: tegra: Implement .apply() callback") > Signed-off-by: Uwe Kleine-König pushed to https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-nexxt which I will rebase to v7.4-rc1 once that's available and then put in my for-next branch as 7.5 material. Best regards Uwe