Re: [PATCH 2/2] pwm: sunxi: Yield some time to the pwm-block to become ready

2016-08-26 Thread Maxime Ripard
Hi, On Thu, Aug 25, 2016 at 07:50:11PM +0200, Olliver Schinagl wrote: > From: Olliver Schinagl > > The pwm-block of some of the sunxi chips feature a 'ready' flag to > indicate the software that it is ready for new commands. > > Right now, when we call pwm_config and

Re: [PATCH 2/2] pwm: sunxi: Yield some time to the pwm-block to become ready

2016-08-26 Thread Maxime Ripard
Hi, On Thu, Aug 25, 2016 at 07:50:11PM +0200, Olliver Schinagl wrote: > From: Olliver Schinagl > > The pwm-block of some of the sunxi chips feature a 'ready' flag to > indicate the software that it is ready for new commands. > > Right now, when we call pwm_config and set the period, we write

[PATCH 2/2] pwm: sunxi: Yield some time to the pwm-block to become ready

2016-08-25 Thread Olliver Schinagl
From: Olliver Schinagl The pwm-block of some of the sunxi chips feature a 'ready' flag to indicate the software that it is ready for new commands. Right now, when we call pwm_config and set the period, we write the values to the registers, and turn off the clock to the

[PATCH 2/2] pwm: sunxi: Yield some time to the pwm-block to become ready

2016-08-25 Thread Olliver Schinagl
From: Olliver Schinagl The pwm-block of some of the sunxi chips feature a 'ready' flag to indicate the software that it is ready for new commands. Right now, when we call pwm_config and set the period, we write the values to the registers, and turn off the clock to the IP. Because of this, the