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 > Fixes: 757642f9a584e ("gpio: mvebu: Add limited PWM support") > Signed-off-by: Baruch Siach Reviewed-by: Uwe Kleine-König Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |