On Wed, Jan 13, 2021 at 11:22:41AM +0200, Baruch Siach wrote: > The period is the sum of on and off values. That is, calculate period as > > ($on + $off) / clkrate > > instead of > > $off / clkrate - $on / clkrate > > that makes no sense. > > Reported-by: Russell King <linux@xxxxxxxxxxxxxxx> > Fixes: 757642f9a584e ("gpio: mvebu: Add limited PWM support") > Signed-off-by: Baruch Siach <baruch@xxxxxxxxxx> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
Attachment:
signature.asc
Description: PGP signature