Re: [PATCHv2] pwm: lpc-18xx: use pwm_set_chip_data

2016-09-02 Thread Ariel D'Alessandro
al chip data pointer. > > Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> Reviewed-by: Ariel D'Alessandro <ar...@vanguardiasur.com.ar> > --- > Hi, > > This is a resend of a patch-series I sent last year. There was no technical > related feedback and so

Re: [PATCHv2] pwm: lpc-18xx: use pwm_set_chip_data

2016-09-02 Thread Ariel D'Alessandro
al chip data pointer. > > Signed-off-by: Olliver Schinagl Reviewed-by: Ariel D'Alessandro > --- > Hi, > > This is a resend of a patch-series I sent last year. There was no technical > related feedback and so I am re-sending the patch as is. I did rebase it to > Linus's c

Re: [PATCH v5 1/5] pwm: add the Berlin pwm controller driver

2015-09-07 Thread Ariel D'Alessandro
quot;, ret); > + return ret; I think you're missing some cleanup routine here. You have a previous call to clk_prepare_enable(), so you may have a call to clk_disable_unprepare() here in order to exit cleanly, don't you think? > + } > + > + platform_set_drvdata(pdev,

Re: [PATCH v3 2/2] pwm: Add Broadcom BCM7038 PWM controller support

2015-09-07 Thread Ariel D'Alessandro
dev); > + > + clk_disable_unprepare(p->clk); > + > + return pwmchip_remove(>chip); AFAIK, pwmchip_remove() may return busy if the PWM chip provides a PWM device that is still requested, so you shouldn't disable the clock before you ensure the PWM chip has been successfuly remove

Re: [PATCH v5 1/5] pwm: add the Berlin pwm controller driver

2015-09-07 Thread Ariel D'Alessandro
ret = pwmchip_add(>chip); > + if (ret < 0) { > + dev_err(>dev, "Failed to add PWM chip: %d\n", ret); > + return ret; I think you're missing some cleanup routine here. You have a previous call to clk_prepare_enable(), so you may have a call to clk_disable_

Re: [PATCH v3 2/2] pwm: Add Broadcom BCM7038 PWM controller support

2015-09-07 Thread Ariel D'Alessandro
*p = platform_get_drvdata(pdev); > + > + clk_disable_unprepare(p->clk); > + > + return pwmchip_remove(>chip); AFAIK, pwmchip_remove() may return busy if the PWM chip provides a PWM device that is still requested, so you shouldn't disable the clock before you ensure the PWM chip has