Re: [PATCH v7 7/8] pwm: pca9685: Restrict period change for enabled PWMs

2021-04-07 Thread Uwe Kleine-König
On Wed, Apr 07, 2021 at 10:41:27PM +0200, Clemens Gruber wrote: > On Wed, Apr 07, 2021 at 08:12:29AM +0200, Uwe Kleine-König wrote: > > On Tue, Apr 06, 2021 at 06:41:39PM +0200, Clemens Gruber wrote: > > > Previously, the last used PWM channel could change the global prescale > > > setting, even if

Re: [PATCH v7 7/8] pwm: pca9685: Restrict period change for enabled PWMs

2021-04-07 Thread Clemens Gruber
On Wed, Apr 07, 2021 at 08:12:29AM +0200, Uwe Kleine-König wrote: > On Tue, Apr 06, 2021 at 06:41:39PM +0200, Clemens Gruber wrote: > > Previously, the last used PWM channel could change the global prescale > > setting, even if other channels are already in use. > > > > Fix it by only allowing the

Re: [PATCH v7 7/8] pwm: pca9685: Restrict period change for enabled PWMs

2021-04-06 Thread Uwe Kleine-König
On Tue, Apr 06, 2021 at 06:41:39PM +0200, Clemens Gruber wrote: > Previously, the last used PWM channel could change the global prescale > setting, even if other channels are already in use. > > Fix it by only allowing the first enabled PWM to change the global > chip-wide prescale setting. If the

[PATCH v7 7/8] pwm: pca9685: Restrict period change for enabled PWMs

2021-04-06 Thread Clemens Gruber
Previously, the last used PWM channel could change the global prescale setting, even if other channels are already in use. Fix it by only allowing the first enabled PWM to change the global chip-wide prescale setting. If there is more than one channel in use, the prescale settings resulting from t