[PATCH v6 2/3] pwm: sophgo: add driver for Sophgo SG2042 PWM

Chen Wang unicorn_wang at outlook.com
Wed Jan 22 03:54:26 PST 2025


On 2025/1/22 18:03, Uwe Kleine-König wrote:
> The rational is usually that
>
> 	mul_u64_u64_div_u64(ddata->clk_rate_hz, state->period, NSEC_PER_SEC)
>
> cannot overflow. Your driver relies on that, too. (Which somewhat
> proves that a comment is indeed necessary 🙂

Oh, thanks for pointing that out, I almost forgot about that. Will check 
this out in the next version.

Regards,

Chen




More information about the linux-riscv mailing list