Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-23 Thread Thierry Reding
On Tue, Oct 23, 2012 at 10:31:28AM +0100, Russell King - ARM Linux wrote: > On Tue, Oct 23, 2012 at 11:22:47AM +0200, Thierry Reding wrote: > > On Tue, Oct 23, 2012 at 09:41:46PM +1300, Tony Prisk wrote: > > > Further to the discussion, my preference is still for of_clk_get() > > > (although I've

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-23 Thread Russell King - ARM Linux
On Tue, Oct 23, 2012 at 11:22:47AM +0200, Thierry Reding wrote: > On Tue, Oct 23, 2012 at 09:41:46PM +1300, Tony Prisk wrote: > > Further to the discussion, my preference is still for of_clk_get() > > (although I've changed the patch anyway as you saw because it makes no > > difference in this

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-23 Thread Thierry Reding
On Tue, Oct 23, 2012 at 09:41:46PM +1300, Tony Prisk wrote: > On Mon, 2012-10-22 at 10:04 +0200, Thierry Reding wrote: > > On Mon, Oct 22, 2012 at 08:36:22PM +1300, Tony Prisk wrote: > > > On Mon, 2012-10-22 at 09:24 +0200, Thierry Reding wrote: > > > > On Mon, Oct 22, 2012 at 08:09:07PM +1300,

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-23 Thread Tony Prisk
On Mon, 2012-10-22 at 10:04 +0200, Thierry Reding wrote: > On Mon, Oct 22, 2012 at 08:36:22PM +1300, Tony Prisk wrote: > > On Mon, 2012-10-22 at 09:24 +0200, Thierry Reding wrote: > > > On Mon, Oct 22, 2012 at 08:09:07PM +1300, Tony Prisk wrote: > > > > On Mon, 2012-10-22 at 19:51 +1300, Tony

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-23 Thread Tony Prisk
On Mon, 2012-10-22 at 10:04 +0200, Thierry Reding wrote: On Mon, Oct 22, 2012 at 08:36:22PM +1300, Tony Prisk wrote: On Mon, 2012-10-22 at 09:24 +0200, Thierry Reding wrote: On Mon, Oct 22, 2012 at 08:09:07PM +1300, Tony Prisk wrote: On Mon, 2012-10-22 at 19:51 +1300, Tony Prisk wrote:

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-23 Thread Thierry Reding
On Tue, Oct 23, 2012 at 09:41:46PM +1300, Tony Prisk wrote: On Mon, 2012-10-22 at 10:04 +0200, Thierry Reding wrote: On Mon, Oct 22, 2012 at 08:36:22PM +1300, Tony Prisk wrote: On Mon, 2012-10-22 at 09:24 +0200, Thierry Reding wrote: On Mon, Oct 22, 2012 at 08:09:07PM +1300, Tony Prisk

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-23 Thread Russell King - ARM Linux
On Tue, Oct 23, 2012 at 11:22:47AM +0200, Thierry Reding wrote: On Tue, Oct 23, 2012 at 09:41:46PM +1300, Tony Prisk wrote: Further to the discussion, my preference is still for of_clk_get() (although I've changed the patch anyway as you saw because it makes no difference in this case) :)

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-23 Thread Thierry Reding
On Tue, Oct 23, 2012 at 10:31:28AM +0100, Russell King - ARM Linux wrote: On Tue, Oct 23, 2012 at 11:22:47AM +0200, Thierry Reding wrote: On Tue, Oct 23, 2012 at 09:41:46PM +1300, Tony Prisk wrote: Further to the discussion, my preference is still for of_clk_get() (although I've changed

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Tony Prisk
On Mon, 2012-10-22 at 17:08 +0200, Thierry Reding wrote: > On Mon, Oct 22, 2012 at 01:52:08PM +, Arnd Bergmann wrote: > > On Monday 22 October 2012, Thierry Reding wrote: > > > > As long as we get build warnings for leaving out the __devinit/__devexit > > > > annotations, I would generally

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Thierry Reding
On Mon, Oct 22, 2012 at 01:52:08PM +, Arnd Bergmann wrote: > On Monday 22 October 2012, Thierry Reding wrote: > > > As long as we get build warnings for leaving out the __devinit/__devexit > > > annotations, I would generally recommend putting them in. If we do a > > > patch to remove all of

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Arnd Bergmann
On Monday 22 October 2012, Thierry Reding wrote: > > As long as we get build warnings for leaving out the __devinit/__devexit > > annotations, I would generally recommend putting them in. If we do a > > patch to remove all of them, a couple extra instances will not cause > > any more troubles than

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Thierry Reding
On Mon, Oct 22, 2012 at 11:50:21AM +, Arnd Bergmann wrote: > On Monday 22 October 2012, Thierry Reding wrote: > > On Mon, Oct 22, 2012 at 07:51:52PM +1300, Tony Prisk wrote: > > > Replies to your comments inline: > > > > > > On Mon, 2012-10-22 at 08:34 +0200, Thierry Reding wrote: > > > ... >

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Arnd Bergmann
On Monday 22 October 2012, Thierry Reding wrote: > On Mon, Oct 22, 2012 at 07:51:52PM +1300, Tony Prisk wrote: > > Replies to your comments inline: > > > > On Mon, 2012-10-22 at 08:34 +0200, Thierry Reding wrote: > > ... > > > > -static int __devinit pwm_probe(struct platform_device *pdev) > > >

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Thierry Reding
On Mon, Oct 22, 2012 at 08:36:22PM +1300, Tony Prisk wrote: > On Mon, 2012-10-22 at 09:24 +0200, Thierry Reding wrote: > > On Mon, Oct 22, 2012 at 08:09:07PM +1300, Tony Prisk wrote: > > > On Mon, 2012-10-22 at 19:51 +1300, Tony Prisk wrote: > > > > > > > > > > > chip = devm_kzalloc(>dev,

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Tony Prisk
On Mon, 2012-10-22 at 09:24 +0200, Thierry Reding wrote: > On Mon, Oct 22, 2012 at 08:09:07PM +1300, Tony Prisk wrote: > > On Mon, 2012-10-22 at 19:51 +1300, Tony Prisk wrote: > > > > > > > > > chip = devm_kzalloc(>dev, sizeof(*chip), GFP_KERNEL); > > > > > if (chip == NULL) { > > > >

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Thierry Reding
On Mon, Oct 22, 2012 at 08:09:07PM +1300, Tony Prisk wrote: > On Mon, 2012-10-22 at 19:51 +1300, Tony Prisk wrote: > > > > > > > chip = devm_kzalloc(>dev, sizeof(*chip), GFP_KERNEL); > > > > if (chip == NULL) { > > > > dev_err(>dev, "failed to allocate memory\n");

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Thierry Reding
On Mon, Oct 22, 2012 at 07:51:52PM +1300, Tony Prisk wrote: > Replies to your comments inline: > > On Mon, 2012-10-22 at 08:34 +0200, Thierry Reding wrote: > ... > > > -static int __devinit pwm_probe(struct platform_device *pdev) > > > +static const struct of_device_id vt8500_pwm_dt_ids[] = { > >

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Tony Prisk
On Mon, 2012-10-22 at 19:51 +1300, Tony Prisk wrote: > > > > > chip = devm_kzalloc(>dev, sizeof(*chip), GFP_KERNEL); > > > if (chip == NULL) { > > > dev_err(>dev, "failed to allocate memory\n"); > > > @@ -123,26 +144,32 @@ static int __devinit pwm_probe(struct > > > platform_device

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Tony Prisk
Replies to your comments inline: On Mon, 2012-10-22 at 08:34 +0200, Thierry Reding wrote: ... > > -static int __devinit pwm_probe(struct platform_device *pdev) > > +static const struct of_device_id vt8500_pwm_dt_ids[] = { > > + { .compatible = "via,vt8500-pwm", }, > > + { /* Sentinel */ } > >

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Thierry Reding
On Fri, Oct 19, 2012 at 11:38:54PM +1300, Tony Prisk wrote: > This patch updates pwm-vt8500.c to support devicetree probing and > make use of the common clock subsystem. > > Signed-off-by: Tony Prisk > --- > drivers/pwm/pwm-vt8500.c | 79 > ++ > 1

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Thierry Reding
On Fri, Oct 19, 2012 at 11:38:54PM +1300, Tony Prisk wrote: This patch updates pwm-vt8500.c to support devicetree probing and make use of the common clock subsystem. Signed-off-by: Tony Prisk li...@prisktech.co.nz --- drivers/pwm/pwm-vt8500.c | 79

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Tony Prisk
Replies to your comments inline: On Mon, 2012-10-22 at 08:34 +0200, Thierry Reding wrote: ... -static int __devinit pwm_probe(struct platform_device *pdev) +static const struct of_device_id vt8500_pwm_dt_ids[] = { + { .compatible = via,vt8500-pwm, }, + { /* Sentinel */ } +}; +

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Tony Prisk
On Mon, 2012-10-22 at 19:51 +1300, Tony Prisk wrote: chip = devm_kzalloc(pdev-dev, sizeof(*chip), GFP_KERNEL); if (chip == NULL) { dev_err(pdev-dev, failed to allocate memory\n); @@ -123,26 +144,32 @@ static int __devinit pwm_probe(struct platform_device *pdev)

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Thierry Reding
On Mon, Oct 22, 2012 at 07:51:52PM +1300, Tony Prisk wrote: Replies to your comments inline: On Mon, 2012-10-22 at 08:34 +0200, Thierry Reding wrote: ... -static int __devinit pwm_probe(struct platform_device *pdev) +static const struct of_device_id vt8500_pwm_dt_ids[] = { + {

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Thierry Reding
On Mon, Oct 22, 2012 at 08:09:07PM +1300, Tony Prisk wrote: On Mon, 2012-10-22 at 19:51 +1300, Tony Prisk wrote: chip = devm_kzalloc(pdev-dev, sizeof(*chip), GFP_KERNEL); if (chip == NULL) { dev_err(pdev-dev, failed to allocate memory\n); @@

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Tony Prisk
On Mon, 2012-10-22 at 09:24 +0200, Thierry Reding wrote: On Mon, Oct 22, 2012 at 08:09:07PM +1300, Tony Prisk wrote: On Mon, 2012-10-22 at 19:51 +1300, Tony Prisk wrote: chip = devm_kzalloc(pdev-dev, sizeof(*chip), GFP_KERNEL); if (chip == NULL) {

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Thierry Reding
On Mon, Oct 22, 2012 at 08:36:22PM +1300, Tony Prisk wrote: On Mon, 2012-10-22 at 09:24 +0200, Thierry Reding wrote: On Mon, Oct 22, 2012 at 08:09:07PM +1300, Tony Prisk wrote: On Mon, 2012-10-22 at 19:51 +1300, Tony Prisk wrote: chip = devm_kzalloc(pdev-dev, sizeof(*chip),

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Arnd Bergmann
On Monday 22 October 2012, Thierry Reding wrote: On Mon, Oct 22, 2012 at 07:51:52PM +1300, Tony Prisk wrote: Replies to your comments inline: On Mon, 2012-10-22 at 08:34 +0200, Thierry Reding wrote: ... -static int __devinit pwm_probe(struct platform_device *pdev) +static const

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Thierry Reding
On Mon, Oct 22, 2012 at 11:50:21AM +, Arnd Bergmann wrote: On Monday 22 October 2012, Thierry Reding wrote: On Mon, Oct 22, 2012 at 07:51:52PM +1300, Tony Prisk wrote: Replies to your comments inline: On Mon, 2012-10-22 at 08:34 +0200, Thierry Reding wrote: ... -static int

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Arnd Bergmann
On Monday 22 October 2012, Thierry Reding wrote: As long as we get build warnings for leaving out the __devinit/__devexit annotations, I would generally recommend putting them in. If we do a patch to remove all of them, a couple extra instances will not cause any more troubles than we

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Thierry Reding
On Mon, Oct 22, 2012 at 01:52:08PM +, Arnd Bergmann wrote: On Monday 22 October 2012, Thierry Reding wrote: As long as we get build warnings for leaving out the __devinit/__devexit annotations, I would generally recommend putting them in. If we do a patch to remove all of them, a

Re: [PATCH 2/3] PWM: vt8500: Update vt8500 PWM driver support

2012-10-22 Thread Tony Prisk
On Mon, 2012-10-22 at 17:08 +0200, Thierry Reding wrote: On Mon, Oct 22, 2012 at 01:52:08PM +, Arnd Bergmann wrote: On Monday 22 October 2012, Thierry Reding wrote: As long as we get build warnings for leaving out the __devinit/__devexit annotations, I would generally recommend