[PATCH] V4L/DVB: radio-si4713: Add regulator framework support

2010-10-29 Thread Jarkko Nikula
Convert the driver to use regulator framework instead of set_power callback. This with gpio_reset platform data provide cleaner way to manage chip VIO, VDD and reset signal inside the driver. Signed-off-by: Jarkko Nikula Cc: Eduardo Valentin --- v3: include/media/si4713.h change was

Re: [git:v4l-dvb/v2.6.37] [media] radio-si4713: Add regulator framework support

2010-10-29 Thread Jarkko Nikula
On Fri, 29 Oct 2010 11:54:34 -0200 Mauro Carvalho Chehab wrote: > I had to remove it from my queue, as the patch broke compilation: > > > http://git.linuxtv.org/media_tree.git?a=commit;h=350df81ebaccc651fa4dfad27738db958e067ded > > What's the sense of adding a patch that breaks a driver?

Re: [git:v4l-dvb/v2.6.37] [media] radio-si4713: Add regulator framework support

2010-10-28 Thread Jarkko Nikula
upport > Author: Jarkko Nikula > Date:Tue Sep 21 05:49:43 2010 -0300 > > Convert the driver to use regulator framework instead of set_power callback. > This with gpio_reset platform data provide cleaner way to manage chip VIO, > VDD and reset signal inside the driver. >

[PATCHv2 2/2] V4L/DVB: radio-si4713: Add regulator framework support

2010-09-21 Thread Jarkko Nikula
Convert the driver to use regulator framework instead of set_power callback. This with gpio_reset platform data provide cleaner way to manage chip VIO, VDD and reset signal inside the driver. Signed-off-by: Jarkko Nikula Cc: Eduardo Valentin --- v2: I moved all the regulator management to i2c

[PATCHv2 1/2] V4L/DVB: radio-si4713: Release i2c adapter in driver cleanup paths

2010-09-21 Thread Jarkko Nikula
Call to i2c_put_adapter was missing in radio_si4713_pdriver_probe and radio_si4713_pdriver_remove. Signed-off-by: Jarkko Nikula Acked-by: Eduardo Valentin --- No changes, Eduardo's ack added. --- drivers/media/radio/radio-si4713.c | 10 -- 1 files changed, 8 insertions(

[PATCHv2 0/2] Si4713 fix and regulator fw support

2010-09-21 Thread Jarkko Nikula
Hi Repost of these two patches. I added Eduardo's ack to 1st and moved regulator management in 2nd to single place only as suggested by Eduardo. My first version was separating them to radio-si4713.c and si4713-i2c.c and indeed then there is a risk that vio is missed if si4713-i2c.c is reused in

Re: [PATCH 2/2] V4L/DVB: radio-si4713: Add regulator framework support

2010-09-08 Thread Jarkko Nikula
On Wed, 8 Sep 2010 15:11:36 +0300 Eduardo Valentin wrote: > The background here you are probably missing is that the split between > i2c and platform drivers. That has been done because we were thinking also > in the situation where the si4713 i2c driver could be used without the > platform drive

Re: [PATCH 2/2] V4L/DVB: radio-si4713: Add regulator framework support

2010-09-07 Thread Jarkko Nikula
Hi On Tue, 7 Sep 2010 22:49:49 +0300 Eduardo Valentin wrote: > Hello Jarkko, > > On Sun, Jun 13, 2010 at 08:09:28PM +0200, Jarkko Nikula wrote: > > Convert the driver to use regulator framework instead of set_power callback. > > This with gpio_reset platform data provide

Re: [PATCH 1/2] V4L/DVB: radio-si4713: Release i2c adapter in driver cleanup paths

2010-08-23 Thread Jarkko Nikula
Hi On Mon, 2 Aug 2010 13:09:52 +0300 Jarkko Nikula wrote: > On Mon, 05 Jul 2010 16:28:30 -0300 > Mauro Carvalho Chehab wrote: > > > Hi Eduardo, > > > > Could you please review those two patches? > > > Hmm.. are these two patches already late for 2.6.36?

Re: [PATCH 1/2] V4L/DVB: radio-si4713: Release i2c adapter in driver cleanup paths

2010-08-02 Thread Jarkko Nikula
On Mon, 05 Jul 2010 16:28:30 -0300 Mauro Carvalho Chehab wrote: > Hi Eduardo, > > Could you please review those two patches? > Hmm.. are these two patches already late for 2.6.36? I have two another patches to arch/arm/mach-omap2/board-rx51-peripherals.c and sound/soc/omap/rx51.c that are pendi

Re: [PATCH] si4713: Fix oops when si4713_platform_data is marked as __initdata

2010-07-05 Thread Jarkko Nikula
On Mon, 05 Jul 2010 13:09:22 -0300 Mauro Carvalho Chehab wrote: > Hi Eduardo, > > This patch is still on my queue. It is not clear to me what "proably fine" > means... > Please ack or nack on it for me to move ahead ;) > Ah, sorry, I should have nacked this myself after I sent the regulator fr

Re: [PATCH 2/2] V4L/DVB: radio-si4713: Add regulator framework support

2010-06-28 Thread Jarkko Nikula
On Sun, 13 Jun 2010 21:09:28 +0300 Jarkko Nikula wrote: > Convert the driver to use regulator framework instead of set_power callback. > This with gpio_reset platform data provide cleaner way to manage chip VIO, > VDD and reset signal inside the driver. > > Signed-off-by: Jark

[PATCH 2/2] V4L/DVB: radio-si4713: Add regulator framework support

2010-06-13 Thread Jarkko Nikula
Convert the driver to use regulator framework instead of set_power callback. This with gpio_reset platform data provide cleaner way to manage chip VIO, VDD and reset signal inside the driver. Signed-off-by: Jarkko Nikula Cc: Eduardo Valentin --- I don't have specifications for this chip

[PATCH 1/2] V4L/DVB: radio-si4713: Release i2c adapter in driver cleanup paths

2010-06-13 Thread Jarkko Nikula
Call to i2c_put_adapter was missing in radio_si4713_pdriver_probe and radio_si4713_pdriver_remove. Signed-off-by: Jarkko Nikula Cc: Eduardo Valentin --- drivers/media/radio/radio-si4713.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/media/radio

Re: [PATCH] si4713: Fix oops when si4713_platform_data is marked as __initdata

2010-05-18 Thread Jarkko Nikula
On Tue, 18 May 2010 15:55:27 +0300 Eduardo Valentin wrote: > I'm probably fine with this patch, and the driver must check for the pointer > before using it, indeed. > > But, I'm a bit skeptic about marking its platform data as __initdata. Would > it make sense? > What happens if driver is built

[PATCH] si4713: Fix oops when si4713_platform_data is marked as __initdata

2010-05-16 Thread Jarkko Nikula
oint to valid data anymore after kernel is initialized. Fix this by taking local copy of si4713_platform_data->set_power. Add also NULL check for this function pointer. Signed-off-by: Jarkko Nikula Cc: Eduardo Valentin --- drivers/media/radio/si4713-i2c.c | 15 +-- drivers/med