Subject: Re: [PATCH] pwm: imx27: Fix rounding behavior

From: Guru Das Srinagesh <[email-masked]>
Date: Tue, 2 Jun 2020 13:42:12 -0700

On Tue, Jun 02, 2020 at 02:48:35PM +0200, Thierry Reding wrote:
> On Thu, Apr 16, 2020 at 10:02:45AM +0200, Uwe Kleine-König wrote:
> > To not trigger the warnings provided by CONFIG_PWM_DEBUG
> > 
> >  - use up-rounding in .get_state()
> >  - don't divide by the result of a division
> >  - don't use the rounded counter value for the period length to calculate
> >    the counter value for the duty cycle
> > 
> > Signed-off-by: Uwe Kleine-König <[email-masked]>
> > ---
> >  drivers/pwm/pwm-imx27.c | 20 ++++++++++----------
> >  1 file changed, 10 insertions(+), 10 deletions(-)
> 
> Applied, thanks.
> 
> Thierry

Hi Thierry,

Just FYI, This change conflicts with one of my patches [1] in the "Convert
PWM period and duty cycle to u64" series.

[1]: https://patchwork.ozlabs.org/project/linux-pwm/patch/[email-masked]/

_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel