Thread (10 messages) 10 messages, 3 authors, 2021-01-18

Re: [PATCH v2 1/5] gpio: mvebu: fix pwm .get_state period calculation

From: Uwe Kleine-König <hidden>
Date: 2021-01-13 09:28:55
Also in: linux-arm-kernel, linux-pwm

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@armlinux.org.uk>
Fixes: 757642f9a584e ("gpio: mvebu: Add limited PWM support")
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Uwe Kleine-König <redacted>

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help