Re: [PATCH v6 2/7] pwm: pca9685: Support hardware readout

From: Uwe Kleine-König
Date: Mon Mar 29 2021 - 11:52:21 EST


Hello Clemens,

On Mon, Mar 29, 2021 at 02:57:02PM +0200, Clemens Gruber wrote:
> The hardware readout may return slightly different values than those
> that were set in apply due to the limited range of possible prescale and
> counter register values.

This is fine and for most hardware that's not preventable. My
requirement here is that

.get_state(pwm, &state);
.apply_state(pwm, &state);

doesn't yield any changes.

Best regards
Uwe

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

Attachment: signature.asc
Description: PGP signature