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

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

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/ |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help