Re: [PATCH v9 2/2] pwm: core: Set enable state properly on failed call to enable

2015-10-16 Thread Jonathan Richardson
On 15-08-17 07:31 AM, Thierry Reding wrote: > On Mon, Jun 15, 2015 at 04:22:27PM -0700, Jonathan Richardson wrote: >> On 15-06-15 02:21 PM, Jonathan Richardson wrote: >>> The pwm_enable function didn't clear the enabled bit if a call to a >>> clients enable function returned an error. The result wa

Re: [PATCH v9 2/2] pwm: core: Set enable state properly on failed call to enable

2015-08-17 Thread Thierry Reding
On Mon, Jun 15, 2015 at 04:22:27PM -0700, Jonathan Richardson wrote: > On 15-06-15 02:21 PM, Jonathan Richardson wrote: > > The pwm_enable function didn't clear the enabled bit if a call to a > > clients enable function returned an error. The result was that the state > > of the pwm core was wrong.

Re: [PATCH v9 2/2] pwm: core: Set enable state properly on failed call to enable

2015-06-15 Thread Jonathan Richardson
On 15-06-15 02:21 PM, Jonathan Richardson wrote: > The pwm_enable function didn't clear the enabled bit if a call to a > clients enable function returned an error. The result was that the state > of the pwm core was wrong. Clearing the bit when enable returns an error > ensures the state is properl