diff mbox

[PULL] soc-camera 2.6.32: new driver and a compile-fix

Message ID Pine.LNX.4.64.0909231757220.4183@axis700.grange (mailing list archive)
State Accepted
Headers show

Commit Message

Guennadi Liakhovetski Sept. 23, 2009, 4:02 p.m. UTC
On Wed, 23 Sep 2009, Guennadi Liakhovetski wrote:

> Hi Mauro
> 
> The following two patches are for 2.6.32. One of them fixes 
> sh_mobile_ceu_camera compile breakage, and another one adds a new 
> soc-camera / v4l2-subdev driver for ov9640. Marek, looks like you didn't 
> even compile tested your driver with CONFIG_VIDEO_ADV_DEBUG=y. It didn't 
> compile, so, I had to fix it.
> 
> Please pull from http://linuxtv.org/hg/~gliakhovetski/v4l-dvb
> 
> for the following 2 changesets:
> 
> 01/02: V4L2: Add a v4l2-subdev (soc-camera) driver for OmniVision OV9640 sensor
> http://linuxtv.org/hg/~gliakhovetski/v4l-dvb?cmd=changeset;node=1dec51b360a3
> 
> 02/02: sh_mobile_ceu_camera: fix compile breakage, caused by a bad merge
> http://linuxtv.org/hg/~gliakhovetski/v4l-dvb?cmd=changeset;node=a798c751f06d

Sorry, forgot to mention, somehow, the git and the hg versions got 

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Paul Mundt Sept. 25, 2009, 2:52 a.m. UTC | #1
On Wed, Sep 23, 2009 at 06:02:04PM +0200, Guennadi Liakhovetski wrote:
> On Wed, 23 Sep 2009, Guennadi Liakhovetski wrote:
> 
> > Hi Mauro
> > 
> > The following two patches are for 2.6.32. One of them fixes 
> > sh_mobile_ceu_camera compile breakage, and another one adds a new 
> > soc-camera / v4l2-subdev driver for ov9640. Marek, looks like you didn't 
> > even compile tested your driver with CONFIG_VIDEO_ADV_DEBUG=y. It didn't 
> > compile, so, I had to fix it.
> > 
> > Please pull from http://linuxtv.org/hg/~gliakhovetski/v4l-dvb
> > 
> > for the following 2 changesets:
> > 
> > 01/02: V4L2: Add a v4l2-subdev (soc-camera) driver for OmniVision OV9640 sensor
> > http://linuxtv.org/hg/~gliakhovetski/v4l-dvb?cmd=changeset;node=1dec51b360a3
> > 
> > 02/02: sh_mobile_ceu_camera: fix compile breakage, caused by a bad merge
> > http://linuxtv.org/hg/~gliakhovetski/v4l-dvb?cmd=changeset;node=a798c751f06d
> 
> Sorry, forgot to mention, somehow, the git and the hg versions got 
> different merges, both wrong, so, for the git the following equivalent 
> patch will be needed, after which the two versions shall be in sync again:
> 
> sh_mobile_ceu_camera: fix compile breakage, caused by a bad merge
> 
> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>

So who wants to push this one? I'm planning on sending Linus updates
shortly, so can roll this in with mine, as it seems to have missed the
last v4l merge.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Mauro Carvalho Chehab Sept. 25, 2009, 4:29 a.m. UTC | #2
Em Fri, 25 Sep 2009 11:52:19 +0900
Paul Mundt <lethal@linux-sh.org> escreveu:

> On Wed, Sep 23, 2009 at 06:02:04PM +0200, Guennadi Liakhovetski wrote:
> > On Wed, 23 Sep 2009, Guennadi Liakhovetski wrote:
> > 
> > > Hi Mauro
> > > 
> > > The following two patches are for 2.6.32. One of them fixes 
> > > sh_mobile_ceu_camera compile breakage, and another one adds a new 
> > > soc-camera / v4l2-subdev driver for ov9640. Marek, looks like you didn't 
> > > even compile tested your driver with CONFIG_VIDEO_ADV_DEBUG=y. It didn't 
> > > compile, so, I had to fix it.
> > > 
> > > Please pull from http://linuxtv.org/hg/~gliakhovetski/v4l-dvb
> > > 
> > > for the following 2 changesets:
> > > 
> > > 01/02: V4L2: Add a v4l2-subdev (soc-camera) driver for OmniVision OV9640 sensor
> > > http://linuxtv.org/hg/~gliakhovetski/v4l-dvb?cmd=changeset;node=1dec51b360a3
> > > 
> > > 02/02: sh_mobile_ceu_camera: fix compile breakage, caused by a bad merge
> > > http://linuxtv.org/hg/~gliakhovetski/v4l-dvb?cmd=changeset;node=a798c751f06d
> > 
> > Sorry, forgot to mention, somehow, the git and the hg versions got 
> > different merges, both wrong, so, for the git the following equivalent 
> > patch will be needed, after which the two versions shall be in sync again:
> > 
> > sh_mobile_ceu_camera: fix compile breakage, caused by a bad merge
> > 
> > Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
> 
> So who wants to push this one? I'm planning on sending Linus updates
> shortly, so can roll this in with mine, as it seems to have missed the
> last v4l merge.

Paul,

It seems fine to me if you could do it. I have some pending stuff on other
kernel areas, so I'd appreciate if you can handle this fix.

You have my ack on it:

Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>



Cheers,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Paul Mundt Sept. 25, 2009, 4:31 a.m. UTC | #3
On Fri, Sep 25, 2009 at 01:29:08AM -0300, Mauro Carvalho Chehab wrote:
> Em Fri, 25 Sep 2009 11:52:19 +0900
> Paul Mundt <lethal@linux-sh.org> escreveu:
> 
> > On Wed, Sep 23, 2009 at 06:02:04PM +0200, Guennadi Liakhovetski wrote:
> > > On Wed, 23 Sep 2009, Guennadi Liakhovetski wrote:
> > > 
> > > > Hi Mauro
> > > > 
> > > > The following two patches are for 2.6.32. One of them fixes 
> > > > sh_mobile_ceu_camera compile breakage, and another one adds a new 
> > > > soc-camera / v4l2-subdev driver for ov9640. Marek, looks like you didn't 
> > > > even compile tested your driver with CONFIG_VIDEO_ADV_DEBUG=y. It didn't 
> > > > compile, so, I had to fix it.
> > > > 
> > > > Please pull from http://linuxtv.org/hg/~gliakhovetski/v4l-dvb
> > > > 
> > > > for the following 2 changesets:
> > > > 
> > > > 01/02: V4L2: Add a v4l2-subdev (soc-camera) driver for OmniVision OV9640 sensor
> > > > http://linuxtv.org/hg/~gliakhovetski/v4l-dvb?cmd=changeset;node=1dec51b360a3
> > > > 
> > > > 02/02: sh_mobile_ceu_camera: fix compile breakage, caused by a bad merge
> > > > http://linuxtv.org/hg/~gliakhovetski/v4l-dvb?cmd=changeset;node=a798c751f06d
> > > 
> > > Sorry, forgot to mention, somehow, the git and the hg versions got 
> > > different merges, both wrong, so, for the git the following equivalent 
> > > patch will be needed, after which the two versions shall be in sync again:
> > > 
> > > sh_mobile_ceu_camera: fix compile breakage, caused by a bad merge
> > > 
> > > Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
> > 
> > So who wants to push this one? I'm planning on sending Linus updates
> > shortly, so can roll this in with mine, as it seems to have missed the
> > last v4l merge.
> 
> Paul,
> 
> It seems fine to me if you could do it. I have some pending stuff on other
> kernel areas, so I'd appreciate if you can handle this fix.
> 
> You have my ack on it:
> 
> Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
> 
Ok, I'll queue it up, thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

different merges, both wrong, so, for the git the following equivalent 
patch will be needed, after which the two versions shall be in sync again:

sh_mobile_ceu_camera: fix compile breakage, caused by a bad merge

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
---
diff --git a/drivers/media/video/sh_mobile_ceu_camera.c b/drivers/media/video/sh_mobile_ceu_camera.c
index 5ab7c5a..65ac474 100644
--- a/drivers/media/video/sh_mobile_ceu_camera.c
+++ b/drivers/media/video/sh_mobile_ceu_camera.c
@@ -404,7 +404,7 @@  static int sh_mobile_ceu_add_device(struct soc_camera_device *icd)
 		 "SuperH Mobile CEU driver attached to camera %d\n",
 		 icd->devnum);
 
-	clk_enable(pcdev->clk);
+	pm_runtime_get_sync(ici->v4l2_dev.dev);
 
 	ceu_write(pcdev, CAPSR, 1 << 16); /* reset */
 	while (ceu_read(pcdev, CSTSR) & 1)
@@ -438,7 +438,7 @@  static void sh_mobile_ceu_remove_device(struct soc_camera_device *icd)
 	}
 	spin_unlock_irqrestore(&pcdev->lock, flags);
 
-	clk_disable(pcdev->clk);
+	pm_runtime_put_sync(ici->v4l2_dev.dev);
 
 	dev_info(icd->dev.parent,
 		 "SuperH Mobile CEU driver detached from camera %d\n",