[PATCH v2] pwm: imx: set can_sleep flag for imx_pwm

Shawn Guo shawn.guo at freescale.com
Fri May 23 02:03:22 PDT 2014


On Fri, May 23, 2014 at 10:43:59AM +0200, Uwe Kleine-König wrote:
> On Fri, May 23, 2014 at 04:41:28PM +0800, Shawn Guo wrote:
> > The .config() hook imx_pwm_config() calls clk APIs like clk_prepare()
> > and clk_get_rate(), which might sleep, so we need to set can_sleep flag
> > on pwm_chip.
> Wasn't there a bug that was fixed or at least made more obvious with
> this change? Is it worth mentioning in the commit log?

The bug should be the one same as what we fixed on pwm-mxs[1].  But I
did not try to trigger it on pwm-imx myself, because it's obvious.

Shawn

[1] http://article.gmane.org/gmane.linux.pwm/570



More information about the linux-arm-kernel mailing list