Re: [PATCH v2 3/5] gpio: mvebu: make pwm .get_state closer to idempotent
From: Uwe Kleine-König <hidden>
Date: 2021-01-13 09:43:15
Also in:
linux-gpio, linux-pwm
From: Uwe Kleine-König <hidden>
Date: 2021-01-13 09:43:15
Also in:
linux-gpio, linux-pwm
On Wed, Jan 13, 2021 at 11:22:43AM +0200, Baruch Siach wrote:
Round up the result of division in period/duty_cycle calculation to make the result closer to idempotent.
Maybe: Round up the divisions in .get_state() to make applying the read out configuration idempotent in most cases as .apply rounds down.
Reported-by: Uwe Kleine-König <redacted> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Other than that: Reviewed-by: Uwe Kleine-König <redacted> Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |