[PATCH v2 3/5] gpio: mvebu: make pwm .get_state closer to idempotent

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Wed Jan 13 04:42:07 EST 2021


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 <u.kleine-koenig at pengutronix.de>
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>

Other than that:

Reviewed-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210113/f96ae1f6/attachment.sig>


More information about the linux-arm-kernel mailing list