[PATCH] pwm: sun4i: Round delay time up to a nearest jiffy
Roman Beránek
roman.beranek at prusa3d.cz
Fri Apr 30 03:19:32 BST 2021
Hello Uwe,
On Thu, Apr 29, 2021 at 2:04 PM Uwe Kleine-König
<u.kleine-koenig at pengutronix.de> wrote:
>
> Hello Roman,
>
> On Wed, Apr 28, 2021 at 02:14:31PM +0200, Roman Beránek wrote:
> > Correct, the output may stay in an active state. I only discovered this
> > bug as I investigated a report of unreliable screen timeout. The period
> > we use the PWM with is 50 us.
>
> What I don't like here is that the delay is quite coarse and might still
> be too short. (Maybe I miss something, but consider the current period
> is quite long, then you configure a short one and then disable. In this
> case the inital long setting might still be active.)
The delay is calculated from the original period (cstate.period),
not the one that was just written into PWM_CHx_PRD 2 lines above.
> > Note: my apologies for the previous HTML message
>
> I didn't notice (because the message also contained a txt part). Another
> thing to improve is to reply inline instead of top posting :-)
Yeah, learning the conventions one reply at a time :-)
Cheers,
Roman
More information about the linux-arm-kernel
mailing list