Re: [PATCH v10 06/17] pwm: lpss: Make pwm_lpss_apply() not rely on existing hardware state

2020-09-04 Thread Andy Shevchenko
On Thu, Sep 03, 2020 at 01:23:26PM +0200, Hans de Goede wrote: > Before this commit pwm_lpss_apply() was assuming 2 pre-conditions > were met by the existing hardware state: > > 1. That the base-unit and on-time-div read back from the > control register are those actually in use, so that it > can

[PATCH v10 06/17] pwm: lpss: Make pwm_lpss_apply() not rely on existing hardware state

2020-09-03 Thread Hans de Goede
Before this commit pwm_lpss_apply() was assuming 2 pre-conditions were met by the existing hardware state: 1. That the base-unit and on-time-div read back from the control register are those actually in use, so that it can skip setting the update bit if the read-back value matches the desired