Re: [PATCH RFC 2/6] pwm: core: Add option to config PWM duty/period with u64 data length

From: Andy Shevchenko
Date: Sun Jul 26 2020 - 05:04:37 EST


On Sat, Jul 25, 2020 at 12:40 AM Martin Botka <martin.botka1@xxxxxxxxx> wrote:
>
> From: Fenglin Wu <fenglinw@xxxxxxxxxxxxxx>
>
> Currently, PWM core driver provides interfaces for configuring PWM
> period and duty length in nanoseconds with an integer data type, so
> the max period can be only set to ~2.147 seconds. Add interfaces which
> can set PWM period and duty with u64 data type to remove this
> limitation.

And all divisions go mad on 32-bit CPU, right?
Please, if you thought about it carefully, update a commit message to
clarify that.

--
With Best Regards,
Andy Shevchenko