[GIT PULL] 2 3.12 fixes: mx3-camera and VOU

2013-09-17 Thread Guennadi Liakhovetski
(2013-09-17 13:07:03 +1000) are available in the git repository at: git://linuxtv.org/gliakhovetski/v4l-dvb.git 3.12-rc1-fixes Dan Carpenter (2): sh_vou: almost forever loop in sh_vou_try_fmt_vid_out() mx3-camera: locking cleanup in mx3_videobuf_queue() drivers/media/platform

[patch v2] [media] mx3-camera: locking cleanup in mx3_videobuf_queue()

2013-08-29 Thread Dan Carpenter
Smatch complains about the locking here because we mix spin_lock_irq() with spin_lock_irqsave() in an unusual way. According to Smatch, it's not always clear if the IRQs are enabled or disabled when we return. It turns out this function is always called with IRQs enabled and we can just use spin_

Re: [patch] [media] mx3-camera: locking typo in mx3_videobuf_queue()

2013-08-28 Thread Guennadi Liakhovetski
On Sat, 24 Aug 2013, Dan Carpenter wrote: > On Fri, Aug 23, 2013 at 11:16:51PM +0200, Guennadi Liakhovetski wrote: > > Hi Dan, > > > > On Fri, 23 Aug 2013, Dan Carpenter wrote: > > > > > There is a return in the middle where we haven't restored the IRQs to > > > their original state. > > > > >

Re: [patch] [media] mx3-camera: locking typo in mx3_videobuf_queue()

2013-08-24 Thread Dan Carpenter
On Fri, Aug 23, 2013 at 11:16:51PM +0200, Guennadi Liakhovetski wrote: > Hi Dan, > > On Fri, 23 Aug 2013, Dan Carpenter wrote: > > > There is a return in the middle where we haven't restored the IRQs to > > their original state. > > > > Signed-off-by: Dan Carpenter > > > > diff --git a/drivers

Re: [patch] [media] mx3-camera: locking typo in mx3_videobuf_queue()

2013-08-23 Thread Guennadi Liakhovetski
Hi Dan, On Fri, 23 Aug 2013, Dan Carpenter wrote: > There is a return in the middle where we haven't restored the IRQs to > their original state. > > Signed-off-by: Dan Carpenter > > diff --git a/drivers/media/platform/soc_camera/mx3_camera.c > b/drivers/media/platform/soc_camera/mx3_camera.c

[patch] [media] mx3-camera: locking typo in mx3_videobuf_queue()

2013-08-23 Thread Dan Carpenter
There is a return in the middle where we haven't restored the IRQs to their original state. Signed-off-by: Dan Carpenter diff --git a/drivers/media/platform/soc_camera/mx3_camera.c b/drivers/media/platform/soc_camera/mx3_camera.c index 1047e3e..4bae910 100644 --- a/drivers/media/platform/soc_ca

[PATCH v11 06/21] mx3-camera: move interface activation and deactivation to clock callbacks

2013-06-14 Thread Guennadi Liakhovetski
When adding and removing a client, the mx3-camera driver only activates and deactivates its camera interface respectively, which doesn't include any client-specific actions. Move this functionality into .clock_start() and .clock_stop() callbacks. Signed-off-by: Guennadi Liakhovetski --- dr

[PATCH v10 06/21] mx3-camera: move interface activation and deactivation to clock callbacks

2013-06-11 Thread Guennadi Liakhovetski
When adding and removing a client, the mx3-camera driver only activates and deactivates its camera interface respectively, which doesn't include any client-specific actions. Move this functionality into .clock_start() and .clock_stop() callbacks. Signed-off-by: Guennadi Liakhovetski --- dr

[PATCH 14/24] mx3-camera: clean up the use of platform data, add driver owner

2013-04-18 Thread Guennadi Liakhovetski
DEV; - goto egetres; - } + if (!res) + return -ENODEV; + + if (!pdata) + return -EINVAL; mx3_cam = vzalloc(sizeof(*mx3_cam)); if (!mx3_cam) { dev_err(&pdev->dev, "Could not allocate mx3 camera object\n");

[PATCH 15/24] mx3-camera: support asynchronous subdevice registration

2013-04-18 Thread Guennadi Liakhovetski
To support asynchronous subdevice registration we only have to pass a subdevice descriptor array from driver platform data to soc-camera for camera host driver registration. Signed-off-by: Guennadi Liakhovetski --- drivers/media/platform/soc_camera/mx3_camera.c |6 ++ include/linux/platf

[PATCH v9 08/20] mx3-camera: move interface activation and deactivation to clock callbacks

2013-04-12 Thread Guennadi Liakhovetski
When adding and removing a client, the mx3-camera driver only activates and deactivates its camera interface respectively, which doesn't include any client-specific actions. Move this functionality into .clock_start() and .clock_stop() callbacks. Signed-off-by: Guennadi Liakhovetski --- dr

RE: mx3-camera

2012-03-06 Thread Alex Gershgorin
From: Alex Gershgorin Sent: Tuesday, March 06, 2012 3:22 PM To: Guennadi Liakhovetski Cc: linux-ker...@vger.kernel.org; Linux Media Mailing List; Sascha Hauer Subject: RE: mx3-camera Thanks Guennadi, >Hi Alex >(adding v4l and Sascha to CC) >

RE: mx3-camera

2012-03-06 Thread Guennadi Liakhovetski
3.0-rc6 version of the Linux > > Kernel. > > Here is my Kernel boot message > > > > "Linux video capture interface: v2.00 > > mx3-camera: probe of mx3-camera.0 failed with error -2" > > > > This error comes from probe function of mx3 camera host driv

Re: mx3-camera

2012-03-06 Thread Fabio Estevam
On Tue, Mar 6, 2012 at 10:22 AM, Alex Gershgorin wrote: > In i.MX35 (arch/arm/mach-imx/clock-imx35.c) it looks like this: > > _REGISTER_CLOCK(NULL, "csi", csi_clk) Yes, I will submit a patch to fix this. Regards, Fabio Estevam -- To unsubscribe from this list: send the line "unsubscribe linux-

RE: mx3-camera

2012-03-06 Thread Alex Gershgorin
nux video capture interface: v2.00 > mx3-camera: probe of mx3-camera.0 failed with error -2" > > This error comes from probe function of mx3 camera host driver. > Precisely in this part of the code: > > mx3_cam->clk = clk_get(&pdev->dev, NULL); > if (IS_ERR(mx3_cam

Re: mx3-camera

2012-03-06 Thread Guennadi Liakhovetski
Hi Alex (adding v4l and Sascha to CC) On Tue, 6 Mar 2012, Alex Gershgorin wrote: > Hi Guennadi, > > I'm working on I.MX35 PDK platform with use 3.3.0-rc6 version of the Linux > Kernel. > Here is my Kernel boot message > > "Linux video capture interface: v

[PATCH v7] V4L: mx3-camera: prepare to support multi-size buffers

2011-11-03 Thread Guennadi Liakhovetski
videobuf_ops = { .queue_setup = mx3_videobuf_setup, - .buf_prepare= mx3_videobuf_prepare, .buf_queue = mx3_videobuf_queue, .buf_cleanup= mx3_videobuf_release, .buf_init = mx3_videobuf_init, @@ -516,6 +524,7 @@ static int mx3_camera_add_devic

[PATCH 8/9 v6] V4L: mx3-camera: prepare to support multi-size buffers

2011-08-31 Thread Guennadi Liakhovetski
lags); @@ -432,7 +441,6 @@ static int mx3_stop_streaming(struct vb2_queue *q) static struct vb2_ops mx3_videobuf_ops = { .queue_setup = mx3_videobuf_setup, - .buf_prepare= mx3_videobuf_prepare, .buf_queue = mx3_videobuf_queue, .buf_cleanup= mx3_videobuf_release, .bu

Re: [PATCH 2/2] V4L: mx3-camera: prepare to support multi-size buffers

2011-08-25 Thread Guennadi Liakhovetski
On Thu, 25 Aug 2011, Laurent Pinchart wrote: > Hi Guennadi, > > On Thursday 25 August 2011 18:46:03 Guennadi Liakhovetski wrote: > > Prepare the mx3_camera friver to support the new VIDIOC_CREATE_BUFS and > > VIDIOC_PREPARE_BUF ioctl()s. The .queue_setup() vb2 operation must be > > able to handle

Re: [PATCH 2/2] V4L: mx3-camera: prepare to support multi-size buffers

2011-08-25 Thread Laurent Pinchart
Hi Guennadi, On Thursday 25 August 2011 18:46:03 Guennadi Liakhovetski wrote: > Prepare the mx3_camera friver to support the new VIDIOC_CREATE_BUFS and > VIDIOC_PREPARE_BUF ioctl()s. The .queue_setup() vb2 operation must be > able to handle buffer sizes, provided by the caller, and the > .buf_prep

[PATCH 2/2] V4L: mx3-camera: prepare to support multi-size buffers

2011-08-25 Thread Guennadi Liakhovetski
_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); } spin_unlock_irqrestore(&mx3_cam->lock, flags); @@ -432,7 +439,6 @@ static int mx3_stop_streaming(struct vb2_queue *q) static struct vb2_ops mx3_videobuf_ops = { .queue_setup= mx3_videobuf_setup, - .

Re: [PATCH RFC] fix cropping and scaling for mx3-camera and mt9t031 drivers

2009-07-02 Thread Valentin Longchamp
Guennadi Liakhovetski wrote: On Wed, 1 Jul 2009, Valentin Longchamp wrote: Guennadi Liakhovetski wrote: While trying all possible skipping / binning combinations of mt9t031 I came across a problem, that in some configurations the sensor produces regular horizontal stripes. They depend on windo

Re: [PATCH RFC] fix cropping and scaling for mx3-camera and mt9t031 drivers

2009-07-01 Thread Guennadi Liakhovetski
On Wed, 1 Jul 2009, Valentin Longchamp wrote: > Guennadi Liakhovetski wrote: > > > > While trying all possible skipping / binning combinations of mt9t031 I > > came across a problem, that in some configurations the sensor produces > > regular horizontal stripes. They depend on window geometry, wi

Re: [PATCH RFC] fix cropping and scaling for mx3-camera and mt9t031 drivers

2009-07-01 Thread Valentin Longchamp
Guennadi Liakhovetski wrote: This makes mx3-camera and mt9t031 S_CROP and S_FMT implementations V4L2 API compliant. Signed-off-by: Guennadi Liakhovetski --- This is definitely only an RFC, it only fixes one single configuration - i.MX31 (mx3-camera) and MT9T031, and breaks the rest, so, other

Re: [PATCH RFC] fix cropping and scaling for mx3-camera and mt9t031 drivers

2009-07-01 Thread Guennadi Liakhovetski
On Tue, 30 Jun 2009, Guennadi Liakhovetski wrote: > This makes mx3-camera and mt9t031 S_CROP and S_FMT implementations V4L2 > API compliant. > > Signed-off-by: Guennadi Liakhovetski > --- > > This is definitely only an RFC, it only fixes one single configuration - >

[PATCH RFC] fix cropping and scaling for mx3-camera and mt9t031 drivers

2009-06-30 Thread Guennadi Liakhovetski
This makes mx3-camera and mt9t031 S_CROP and S_FMT implementations V4L2 API compliant. Signed-off-by: Guennadi Liakhovetski --- This is definitely only an RFC, it only fixes one single configuration - i.MX31 (mx3-camera) and MT9T031, and breaks the rest, so, other soc-camera drivers do not

Re: [PATCH v2] mx3-camera: adapt the clock definition and the driver to the new clock naming

2009-04-03 Thread Sascha Hauer
On Fri, Apr 03, 2009 at 01:26:11PM +0200, Guennadi Liakhovetski wrote: > With the i.MX31 transition to clkdev clock names have changed, but mistakenly > the "mx3-camera.0" has been registered with a non-NULL connection ID, which is > not necessary, since this is the only clock,

[PATCH v2] mx3-camera: adapt the clock definition and the driver to the new clock naming

2009-04-03 Thread Guennadi Liakhovetski
With the i.MX31 transition to clkdev clock names have changed, but mistakenly the "mx3-camera.0" has been registered with a non-NULL connection ID, which is not necessary, since this is the only clock, used by the capture interface driver. Fix the clock definition and the driver to use

Re: [PATCH] mx3-camera: fix to match the new clock naming

2009-04-03 Thread Sascha Hauer
> - mx3_cam->clk = clk_get(&pdev->dev, "csi_clk"); > > > + mx3_cam->clk = clk_get(&pdev->dev, "csi"); > > > > clk_get(&pdev->dev, NULL) please. The name is only for distinguishing > > the clocks when there is more than

Re: [PATCH] mx3-camera: fix to match the new clock naming

2009-04-03 Thread Guennadi Liakhovetski
; > clk_get(&pdev->dev, NULL) please. The name is only for distinguishing > the clocks when there is more than one clock per device which isn't the > case here. > > I just see that it's > > _REGISTER_CLOCK("mx3-camera.0", "csi", csi_clk) &g

Re: [PATCH] mx3-camera: fix to match the new clock naming

2009-04-03 Thread Sascha Hauer
izeof(*mx3_cam)); > > - mx3_cam->clk = clk_get(&pdev->dev, "csi_clk"); > + mx3_cam->clk = clk_get(&pdev->dev, "csi"); clk_get(&pdev->dev, NULL) please. The name is only for distinguishing the clocks when there is more than one clock per devic

[PATCH] mx3-camera: fix to match the new clock naming

2009-04-02 Thread Guennadi Liakhovetski
With the i.MX31 transition to clkdev clock names have changed, fix the driver to use the new name. Signed-off-by: Guennadi Liakhovetski --- diff --git a/drivers/media/video/mx3_camera.c b/drivers/media/video/mx3_camera.c index 70629e1..7e6b51d 100644 --- a/drivers/media/video/mx3_camera.c +++ b/

Re: Rv: mx3-camera on current mxc kernel tree

2009-02-17 Thread Guennadi Liakhovetski
USB and SDHC storage). I am currently working on my soc-camera patch queue, which I shall clean up, complete and push upstream. Then, on top of it, I'll update the mx3-camera driver. My current version contains a few improvements and fixes over the original version. You should be able to start wi