Re: [PATCH] V4L: Remove incorrect EXPORT_SYMBOL() usage at v4l2-of.c

2013-04-02 Thread Guennadi Liakhovetski
arsing library > * > * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd. > - * Sylwester Nawrocki > + * Author: Sylwester Nawrocki > * > * Copyright (C) 2012 Renesas Electronics Corp. > * Author: Guennadi Liakhovetski > @@ -103,7 +103,6

[PATCH] soc-camera: protect against racing open(2) and rmmod

2013-04-02 Thread Guennadi Liakhovetski
To protect against open() racing with rmmod, hold the list_lock also while obtaining a reference to the camera host driver and check that the video device hasn't been unregistered yet. Signed-off-by: Guennadi Liakhovetski --- drivers/media/platform/soc_camera/soc_camera.c |

Re: Status of the patches under review at LMML (32 patches)

2013-04-02 Thread Guennadi Liakhovetski
On Tue, 2 Apr 2013, Laurent Pinchart wrote: > Hi Guennadi, > > On Friday 29 March 2013 16:13:41 Guennadi Liakhovetski wrote: > > Hi Mauro > > > > On Sun, 24 Mar 2013, Mauro Carvalho Chehab wrote: > > > == Guennadi Liakhovetski == > > >

Re: [git:media_tree/master] [media] mfd: Add header files and Kbuild plumbing for SI476x MFD core

2013-03-29 Thread Guennadi Liakhovetski
eceiver_properties { > + SI476X_PROP_INT_CTL_ENABLE = 0x, > + SI476X_PROP_DIGITAL_IO_INPUT_SAMPLE_RATE= 0x0200, > + SI476X_PROP_DIGITAL_IO_INPUT_FORMAT = 0x0201, > + SI476X_PROP_DIGITAL_IO_OUTPUT_SAMPLE_RATE = 0x0202, >

Re: Status of the patches under review at LMML (32 patches)

2013-03-29 Thread Guennadi Liakhovetski
Hi Mauro On Sun, 24 Mar 2013, Mauro Carvalho Chehab wrote: > == Guennadi Liakhovetski == > > I suspect that some of the above may be obsoleted: > > Nov,13 2012: sh_vou: Move from videobuf to videobuf2 > http://patchwork.linux

Re: [PATCH v6 1/7] media: V4L2: add temporary clock helpers

2013-03-19 Thread Guennadi Liakhovetski
if (IS_ERR(clk)) return -EPROBE_DEFER; /* * enable the clock - this needs a subdev pointer, that we stored * in the clock object for the bridge driver to use with * v4l2_clk_get() above */ v4l2_clk_enable(clk); do_probe();

Re: [PATCH v6 1/7] media: V4L2: add temporary clock helpers

2013-03-19 Thread Guennadi Liakhovetski
Hi Sylwester Thanks for reviewing. On Mon, 18 Mar 2013, Sylwester Nawrocki wrote: > Hi Guennadi, > > On 03/15/2013 10:27 PM, Guennadi Liakhovetski wrote: > > Typical video devices like camera sensors require an external clock source. > > Many such devices cannot even

Re: [PATCH] [media] mx2_camera: use module_platform_driver_probe()

2013-03-18 Thread Guennadi Liakhovetski
_platform_driver_probe(). > > Signed-off-by: Fabio Porcedda > Cc: Fabio Estevam > Cc: Guennadi Liakhovetski > Cc: Mauro Carvalho Chehab Thanks, will queue for 3.10. Guennadi > --- > drivers/media/platform/soc_camera/mx2_camera.c | 3 +-- > 1 file changed, 1 insertion(+),

Re: [PATCH v6 3/7] media: soc-camera: switch I2C subdevice drivers to use v4l2-clk

2013-03-18 Thread Guennadi Liakhovetski
On Mon, 18 Mar 2013, Hans Verkuil wrote: > On Fri March 15 2013 22:27:49 Guennadi Liakhovetski wrote: > > Instead of centrally enabling and disabling subdevice master clocks in > > soc-camera core, let subdevice drivers do that themselves, using the > > V4L2 clock API and s

Re: [REVIEW PATCH 4/5] v4l2: add const to argument of write-only s_register ioctl.

2013-03-15 Thread Guennadi Liakhovetski
2 +- > drivers/media/i2c/soc_camera/rj54n1cb0c.c |2 +- > drivers/media/i2c/soc_camera/tw9910.c |2 +- [snip] > drivers/media/platform/sh_vou.c |2 +- > drivers/media/platform/soc_camera/soc_camera.c |2 +- For the above Acked-by: Gu

Re: [REVIEW PATCH 3/5] v4l2: pass std by value to the write-only s_std ioctl.

2013-03-15 Thread Guennadi Liakhovetski
he s_std subdev operation. > > Signed-off-by: Hans Verkuil > --- [snip] > drivers/media/platform/sh_vou.c | 12 ++-- > drivers/media/platform/soc_camera/soc_camera.c |4 ++-- For the above two: Acked-by: Guennadi Liakhovetski Thanks Guennadi -

[PATCH v6 0/7] V4L2 clock and async patches and soc-camera example

2013-03-15 Thread Guennadi Liakhovetski
Update of V4l2 clock and asynchronous probing patches. Various review comments are addressed, as described in individual patches. Guennadi Liakhovetski (7): media: V4L2: add temporary clock helpers media: V4L2: support asynchronous subdevice registration media: soc-camera: switch I2C

[PATCH v6 7/7] ARM: shmobile: convert ap4evb to asynchronously register camera subdevices

2013-03-15 Thread Guennadi Liakhovetski
Register the imx074 camera I2C and the CSI-2 platform devices directly in board platform data instead of letting the sh_mobile_ceu_camera driver and the soc-camera framework register them at their run-time. This uses the V4L2 asynchronous subdevice probing capability. Signed-off-by: Guennadi

[PATCH v6 1/7] media: V4L2: add temporary clock helpers

2013-03-15 Thread Guennadi Liakhovetski
so far only very few systems have been ported to that framework. This patch adds a set of temporary helpers, mimicking the generic clock API, to V4L2. Platforms, adopting the clock API, should switch to using it. Eventually this temporary API should be removed. Signed-off-by: Guennadi Liakhovetski

[PATCH v6 2/7] media: V4L2: support asynchronous subdevice registration

2013-03-15 Thread Guennadi Liakhovetski
) subdevice drivers must register themselves with the framework. A bridge driver on the other hand must register notification callbacks, that will be called upon various related events. Signed-off-by: Guennadi Liakhovetski --- v6: 1. clock name is now - 2. modified API: instead of bind-bound-unbind use

[PATCH v6 3/7] media: soc-camera: switch I2C subdevice drivers to use v4l2-clk

2013-03-15 Thread Guennadi Liakhovetski
Instead of centrally enabling and disabling subdevice master clocks in soc-camera core, let subdevice drivers do that themselves, using the V4L2 clock API and soc-camera convenience wrappers. Signed-off-by: Guennadi Liakhovetski --- v6: clock name update drivers/media/i2c/soc_camera/imx074.c

[PATCH v6 4/7] soc-camera: add V4L2-async support

2013-03-15 Thread Guennadi Liakhovetski
, even when there are multiple such instances registered with a single soc-camera host simultaneously. Signed-off-by: Guennadi Liakhovetski --- v6: update to new v4l2-clk and v4l2-async APIs, export a new soc_camera_power_init() functions for asynchronous subdevices to request regulators drivers

[PATCH v6 6/7] imx074: support asynchronous probing

2013-03-15 Thread Guennadi Liakhovetski
Both synchronous and asynchronous imx074 subdevice probing is supported by this patch. Signed-off-by: Guennadi Liakhovetski --- v6: update to new v4l2-async API, use soc_camera_power_init() drivers/media/i2c/soc_camera/imx074.c | 24 +--- 1 files changed, 21 insertions

[PATCH v6 5/7] sh_mobile_ceu_camera: add asynchronous subdevice probing support

2013-03-15 Thread Guennadi Liakhovetski
Use the v4l2-async API to support asynchronous subdevice probing, including the CSI2 subdevice. Synchronous probing is still supported too. Signed-off-by: Guennadi Liakhovetski --- v6: update to the new v4l2-async API .../platform/soc_camera/sh_mobile_ceu_camera.c | 136

Re: [PATCH v2 1/8] drivers: media: use module_platform_driver_probe()

2013-03-14 Thread Guennadi Liakhovetski
roah-Hartman > Cc: Mauro Carvalho Chehab > Cc: Josh Wu > Cc: Guennadi Liakhovetski > Cc: Hans Verkuil > Cc: linux-media@vger.kernel.org > --- > drivers/media/platform/soc_camera/atmel-isi.c | 12 +--- > 1 file changed, 1 insertion(+), 11 deletions(-) > > diff

Re: [PATCH 01/10] drivers: media: use module_platform_driver_probe()

2013-03-14 Thread Guennadi Liakhovetski
> Cc: Josh Wu > Cc: Guennadi Liakhovetski > Cc: Hans Verkuil > Cc: linux-media@vger.kernel.org Thanks for the patch. Subtracting this series http://thread.gmane.org/gmane.linux.drivers.video-input-infrastructure/61403 you only need to convert atmel-isi.c. Please, respin. Thanks

V4L2 subdevice naming (was Re: [PATCH 1/6 v4] media: V4L2: support asynchronous subdevice registration)

2013-03-12 Thread Guennadi Liakhovetski
h e.g. > > between primary and secondary sensors. > > In that case having the I2C bus number and address in the name doesn't create > an extra portability issue, does it ? > > > For what it's worth, the SMIA++ driver uses the actual name of the sensor > > since there are about 10 sensors supported at the moment, and calling them > > all smiapp- looks a bit insipid. So one has to talk to the sensor to > > know what it's called. > > > > This isn't strictly mandatory but a nice feature. > > > > > you should discover the pipeline and find the sensor by iterating over > > > entities, instead of using the sensor entity name. > > > > To be fully generic, yes. > > -- > Regards, > > Laurent Pinchart > > -- > To unsubscribe from this list: send the line "unsubscribe linux-sh" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > --- 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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH v4] media: V4L2: add temporary clock helpers

2013-03-12 Thread Guennadi Liakhovetski
so far only very few systems have been ported to that framework. This patch adds a set of temporary helpers, mimicking the generic clock API, to V4L2. Platforms, adopting the clock API, should switch to using it. Eventually this temporary API should be removed. Signed-off-by: Guennadi Liakhovetski

[GIT PULL] 3.10 minor updates

2013-03-12 Thread Guennadi Liakhovetski
wclient -u 'accepted' 17111 pwclient -u 'accepted' 17082 pwclient -u 'accepted' 17339 pwclient -u 'accepted' 17081 pwclient -u 'accepted' 17109 pwclient -u 'accepted' 17110 Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Sour

[GIT PULL] soc-camera fixes for 3.9 / stable

2013-03-12 Thread Guennadi Liakhovetski
1): soc-camera: mt9m111: Fix auto-exposure control Guennadi Liakhovetski (1): mt9m111: fix Oops - initialise context before dereferencing drivers/media/i2c/soc_camera/mt9m111.c |9 + drivers/media/i2c/soc_camera/mt9v022.c | 19 ++- 2 files changed,

[PATCH] mt9m111: fix Oops - initialise context before dereferencing

2013-03-12 Thread Guennadi Liakhovetski
ned-off-by: Guennadi Liakhovetski --- drivers/media/i2c/soc_camera/mt9m111.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/soc_camera/mt9m111.c b/drivers/media/i2c/soc_camera/mt9m111.c index ea874ce..cfdda50 100644 --- a/drivers/media/i2c/soc_camera

RE: [REVIEW PATCH V4 01/12] [media] marvell-ccic: add MIPI support for marvell-ccic driver

2013-03-12 Thread Guennadi Liakhovetski
Hi Libin On Tue, 12 Mar 2013, Libin Yang wrote: > Hi Guennadi, > > Thanks for your careful review. Please help see my comments below. > > >-Original Message- > >From: Guennadi Liakhovetski [mailto:g.liakhovet...@gmx.de] > >Sent: Tuesday, March 05, 2013 5:

Re: [PATCH v2] media: i.MX27 camera: fix picture source width

2013-03-12 Thread Guennadi Liakhovetski
On Tue, 12 Mar 2013, javier Martin wrote: > Hi Guernnadi, Christoph, > > On 12 March 2013 09:25, Christoph Fritz wrote: > > On Tue, 2013-03-12 at 08:58 +0100, Guennadi Liakhovetski wrote: > >> On Thu, 7 Mar 2013, javier Martin wrote: > > > >> > What m

Re: [PATCH v2] media: i.MX27 camera: fix picture source width

2013-03-12 Thread Guennadi Liakhovetski
Hi Javier On Thu, 7 Mar 2013, javier Martin wrote: > Hi, > sorry for the long delay. I missed this one. > > On 5 March 2013 18:56, Guennadi Liakhovetski wrote: > > (Javier's opinion requested) > > > > I'm no expert in i.MX27 hardware, would be great to h

Re: [PATCH] [media] soc_camera: remove two outdated selects

2013-03-12 Thread Guennadi Liakhovetski
e > and colour models. > @@ -36,7 +35,6 @@ config SOC_CAMERA_MT9T112 > config SOC_CAMERA_MT9V022 > tristate "mt9v022 and mt9v024 support" > depends on SOC_CAMERA && I2C > - select GPIO_PCA953X if MT9V022_PCA9536_SWITCH > help >

Re: [PATCH v7] [media] Add a V4L2 OF parser

2013-03-11 Thread Guennadi Liakhovetski
anage to get it in on time for 3.10. Let me know if you'd like me to do the next couple of rounds :) Or if you disagree with my comments and prefer your present state. On Fri, 8 Mar 2013, Sylwester Nawrocki wrote: > From: Guennadi Liakhovetski > > Add a V4L2 OF parser, im

Re: mt9m111/mt9m131: kernel 3.8 issues.

2013-03-11 Thread Guennadi Liakhovetski
On Fri, 8 Mar 2013, Guennadi Liakhovetski wrote: > On Fri, 8 Mar 2013, Benoît Thébaudeau wrote: > > > Hi Javier, > > > > On Friday, March 8, 2013 1:37:38 PM, Javier Martin wrote: > > > Hi Benoît, > > > > > > On 8 March

Re: [PATCH] soc_camera: convert to devm_ioremap_resource()

2013-03-11 Thread Guennadi Liakhovetski
On Mon, 11 Mar 2013, Silviu Popescu wrote: > On Mon, Mar 11, 2013 at 9:50 AM, Guennadi Liakhovetski > wrote: > > > > Is there anything in this patch, that this patch series > > > > http://thread.gmane.org/gmane.linux.drivers.video-input-infrastructure/61337 >

Re: [PATCH] soc_camera: convert to devm_ioremap_resource()

2013-03-11 Thread Guennadi Liakhovetski
platform_device *pdev) > > priv->irq = irq; > > - priv->base = devm_request_and_ioremap(&pdev->dev, res); > - if (!priv->base) { > - dev_err(&pdev->dev, "Unable to ioremap CSI2 registers.\n"); > - return -ENXIO; > - }

Re: mt9m111/mt9m131: kernel 3.8 issues.

2013-03-08 Thread Guennadi Liakhovetski
eir recommended register settings > somewhere without having this evaluation board. I just tested my mt9m131 camera on a i.MX31 board, if not this your email I don't think I'd be alarmed by the image quality it's producing, maybe I'm just less picky:-) And yes, in general I ag

Re: mt9m111/mt9m131: kernel 3.8 issues.

2013-03-08 Thread Guennadi Liakhovetski
mt9m111->ctx = &context_b; from mt9m111_init() to probing, instead of adding a context_a selection. And I think it would be more logical to move those lines to mt9m111_probe(), directly below the mt9m111 allocation, not to mt9m111_video_probe(). Please, make this change and submit a patch.

Re: [PATCH] soc_camera: Add RGB666 & RGB888 formats

2013-03-08 Thread Guennadi Liakhovetski
V4L2_MBUS_FMT_RGB555_2X8_PADHI_BE = 0x1003, > @@ -46,6 +46,10 @@ enum v4l2_mbus_pixelcode { > V4L2_MBUS_FMT_BGR565_2X8_LE = 0x1006, > V4L2_MBUS_FMT_RGB565_2X8_BE = 0x1007, > V4L2_MBUS_FMT_RGB565_2X8_LE = 0x1008, > + V4L2_MBUS_FMT_RGB666_1X18 = 0x1

[PATCH] soc-camera: fix typos in the default format-conversion table

2013-03-08 Thread Guennadi Liakhovetski
ode cannot change data endianness, therefore two locations with opposite endianness are erroneous. This change might affest the omap1-camera driver, existing configurations should be verified. Cc: Janusz Krzysztofik Signed-off-by: Guennadi Liakhovetski --- drivers/media/platform/soc_camera/soc_

Re: [PATCH] soc-camera: mt9m111: Fix auto-exposure control

2013-03-07 Thread Guennadi Liakhovetski
set to > > V4L2_EXPOSURE_AUTO (0). > > > > This patch makes mt9m111_set_autoexposure() interpret the value set for > > V4L2_CID_EXPOSURE_AUTO as defined by enum v4l2_exposure_auto_type. > > > > Cc: Guennadi Liakhovetski > > Cc: Mickaël Guivarc'h > > Cc:

Re: Pixel Formats

2013-03-07 Thread Guennadi Liakhovetski
uster it with the normal exposure, but I'm not an expert in that, not sure if it would make sense. 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

RE: [REVIEW PATCH V4 12/12] [media] marvell-ccic: add 3 frame buffers support in DMA_CONTIG mode

2013-03-06 Thread Guennadi Liakhovetski
On Wed, 6 Mar 2013, Albert Wang wrote: > Hi, Guennadi > > > >-Original Message- > >From: Guennadi Liakhovetski [mailto:g.liakhovet...@gmx.de] > >Sent: Wednesday, 06 March, 2013 23:02 > >To: Albert Wang > >Cc: cor...@lwn.net; linux-media@vge

RE: [REVIEW PATCH V4 09/12] [media] marvell-ccic: use unsigned int type replace int type

2013-03-06 Thread Guennadi Liakhovetski
On Wed, 6 Mar 2013, Albert Wang wrote: > Hi, Guennadi > > > >-Original Message- > >From: Guennadi Liakhovetski [mailto:g.liakhovet...@gmx.de] > >Sent: Tuesday, 05 March, 2013 18:43 > >To: Albert Wang > >Cc: cor...@lwn.net; linux-media@vger.kernel.

RE: [REVIEW PATCH V4 12/12] [media] marvell-ccic: add 3 frame buffers support in DMA_CONTIG mode

2013-03-06 Thread Guennadi Liakhovetski
eedn't enter single buffer mode. > If we still can't get new buffer after 1 frame, then CCIC has to enter single > buffer mode. > But if we are lucky enough and get new buffer when next frame come, then > we can still run in normal mode. Thanks for the explanation. Could y

RE: [REVIEW PATCH V4 02/12] [media] marvell-ccic: add clock tree support for marvell-ccic driver

2013-03-06 Thread Guennadi Liakhovetski
Hi Albert On Wed, 6 Mar 2013, Albert Wang wrote: > Hi, Guennadi > > > >-Original Message- > >From: Guennadi Liakhovetski [mailto:g.liakhovet...@gmx.de] > >Sent: Tuesday, 05 March, 2013 17:51 > >To: Albert Wang > >Cc: cor...@lwn.net; linux-media

Re: [PATCH v2] media: i.MX27 camera: fix picture source width

2013-03-05 Thread Guennadi Liakhovetski
> } else { /* channel 2 */ > + writel((pcdev->s_width << 16) | pcdev->s_height, > + pcdev->base_emma + PRP_SRC_FRAME_SIZE); > writel((icd->user_width << 16) | icd->user_height, > pcdev

Re: [REVIEW PATCH V4 12/12] [media] marvell-ccic: add 3 frame buffers support in DMA_CONTIG mode

2013-03-05 Thread Guennadi Liakhovetski
dia/platform/marvell-ccic/mcam-core.h > @@ -44,6 +44,15 @@ enum mcam_state { > }; > #define MAX_DMA_BUFS 3 > > +#ifdef MCAM_MODE_DMA_CONTIG > +/* > + * CCIC can support at most 3 frame buffers in DMA_CONTIG buffer mode > + * 2 - Use Two Buffers mode > + * 3 - Use Three Buffer

Re: [REVIEW PATCH V4 11/12] [media] marvell-ccic: add dma burst support for marvell-ccic driver

2013-03-05 Thread Guennadi Liakhovetski
ang > Acked-by: Jonathan Corbet Acked-by: Guennadi Liakhovetski Thanks Guennadi > --- > drivers/media/platform/marvell-ccic/mcam-core.c |3 ++- > drivers/media/platform/marvell-ccic/mcam-core.h |8 > drivers/media/platform/marvell-ccic/mmp-driver.c | 11 +++

Re: [REVIEW PATCH V4 10/12] [media] marvell-ccic: add soc_camera support for marvell-ccic driver

2013-03-05 Thread Guennadi Liakhovetski
for other platforms would have to just extensively test this and verify the final result (I think I know one such person ;-)). A couple of minor comments below. In general - it does look quite good to me! So, provided relevant testing is done and, possibly, my comments addressed: Acked-by: Guennadi Li

Re: [REVIEW PATCH V4 09/12] [media] marvell-ccic: use unsigned int type replace int type

2013-03-05 Thread Guennadi Liakhovetski
lete)(struct mcam_camera *cam, unsigned int frame); > > /* Current operating parameters */ > u32 sensor_type;/* Currently ov7670 only */ > diff --git a/drivers/media/platform/marvell-ccic/mmp-driver.c > b/drivers/media/platform/marvell-ccic/mmp-driver.c >

Re: [REVIEW PATCH V4 08/12] [media] marvell-ccic: rename B_DMA* to avoid CamelCase warning

2013-03-05 Thread Guennadi Liakhovetski
ate { > * let the platform pick. > */ > enum mcam_buffer_mode { > - B_vmalloc = 0, > - B_DMA_contig = 1, > - B_DMA_sg = 2 > + B_VMALLOC = 0, > + B_DMA_CONTIG = 1, > + B_DMA_SG = 2 > }; > > /* > @@ -59,13 +59,13 @@ static inline int m

Re: [REVIEW PATCH V4 01/12] [media] marvell-ccic: add MIPI support for marvell-ccic driver

2013-03-05 Thread Guennadi Liakhovetski
dphy[3];/* DPHY: CSI2_DPHY3, CSI2_DPHY5, CSI2_DPHY6 */ > + int dphy3_algo; /* Exist 2 algos for calculate CSI2_DPHY3 */ > + int mipi_enabled; /* MIPI enabled flag */ > + int lane; /* ccic used lane number; 0 means DVP mode */ >

Re: [REVIEW PATCH V4 07/12] [media] marvell-ccic: switch to resource managed allocation and request

2013-03-05 Thread Guennadi Liakhovetski
mcam->regs = devm_request_and_ioremap(&pdev->dev, res); Don't kill me, but they've recently invented devm_ioremap_resource(), which is essentially the same as devm_request_and_ioremap(), but also returns an error code and prints an error message, so, you wouldn't have

Re: [REVIEW PATCH V4 05/12] [media] marvell-ccic: add new formats support for marvell-ccic driver

2013-03-05 Thread Guennadi Liakhovetski
dth * fmt->height; > > spin_lock_irqsave(&cam->dev_lock, flags); > + dma_handle = vb2_dma_contig_plane_dma_addr(vb, 0); > + BUG_ON(!dma_handle); Again - a bit too strong. But the truth is - .buf_queue() cannot fail... Would it be possible to move this pointer calculation to .buf_pre

Re: [REVIEW PATCH V4 02/12] [media] marvell-ccic: add clock tree support for marvell-ccic driver

2013-03-05 Thread Guennadi Liakhovetski
} > + } > + } > + return 0; > +} > > static int mmpcam_probe(struct platform_device *pdev) > { > @@ -331,6 +374,10 @@ static int mmpcam_probe(struct platform_device *pdev) > ret = -ENODEV; > goto out_unmap1; >

Re: [PATCH 1/3] [media] sh_veu: Use module_platform_driver_probe macro

2013-03-04 Thread Guennadi Liakhovetski
register(&sh_veu_pdrv); > -} > - > -module_init(sh_veu_init); > -module_exit(sh_veu_exit); > +module_platform_driver_probe(sh_veu_pdrv, sh_veu_probe); > > MODULE_DESCRIPTION("sh-mobile VEU mem2mem driver"); > MODULE_AUTHOR("Guennadi Liakhovetski, ");

Re: [REVIEW PATCH V4 01/12] [media] marvell-ccic: add MIPI support for marvell-ccic driver

2013-03-04 Thread Guennadi Liakhovetski
a->dphy; > + /* mosetly it won't happen. dphy is an array in pdata, but in case .. */ > + if (unlikely(mcam->dphy == NULL)) { > + ret = -EINVAL; > + goto out_free; > + } > + mcam->mipi_enabled = 0; > + mcam->lane = pdata->

Re: [PATCH 1/4] [media] sh_veu.c: Convert to devm_ioremap_resource()

2013-03-04 Thread Guennadi Liakhovetski
Hi On Mon, 4 Mar 2013, Sachin Kamat wrote: > Use the newly introduced devm_ioremap_resource() instead of > devm_request_and_ioremap() which provides more consistent error handling. > > Signed-off-by: Sachin Kamat > Cc: Guennadi Liakhovetski Thanks for the patches. I'll

Re: V4L on android

2013-03-02 Thread Guennadi Liakhovetski
o you have any suggestions on how I could debug it? I've been looking > for any android command line programs to take snap shots but nothing > so far. An advice is welcome. > > Thanks a lot. > -- > To unsubscribe from this list: send the line "unsubscribe linux-medi

Re: [PATCH v2] Media: remove incorrect __init/__exit markups

2013-02-25 Thread Guennadi Liakhovetski
specifically disables sysfs bind/unbind > attributes. > > Similarly probe() methods should not be marked __init unless > platform_driver_probe() is used. > > Signed-off-by: Dmitry Torokhov > --- > > v1->v2: removed __init markup on omap1_cam_probe() that was po

Re: [PATCH] Media: remove incorrect __exit markups

2013-02-24 Thread Guennadi Liakhovetski
This looks correct, but don't we also have to remove __init from omap1_cam_probe()? Or would that be a separate patch? Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- To unsubscribe from this list: send the line &qu

[GIT PULL 3.9] soc-camera + sh-vou

2013-02-11 Thread Guennadi Liakhovetski
| 114 +++- drivers/media/platform/soc_camera/pxa_camera.c | 65 +++-- 2 files changed, 67 insertions(+), 112 deletions(-) Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- To unsubscribe from this list

[GIT PULL] soc-camera 3.8 / 3.9 fixes

2013-02-11 Thread Guennadi Liakhovetski
git repository at: git://linuxtv.org/gliakhovetski/v4l-dvb.git for-3.8-set_3 Guennadi Liakhovetski (2): sh-mobile-ceu-camera: fix SHARPNESS control default mt9t112: mt9t111 format set up differs from mt9t112 drivers/media/i2c/soc_camera/mt9t112.c

Re: [QUERY] V4L async api

2013-02-02 Thread Guennadi Liakhovetski
7;m not exactly sure where the actual crash happens, one of the possibilities is if the match_i2c() function is called for an invalid or unbound i2c device. You'll have to debug this too. Thanks Guennadi > 3: When I just build and use either the capture/display driver and > th

[PATCH] soc-camera: fix compilation breakage in 3 drivers

2013-01-30 Thread Guennadi Liakhovetski
A recent commit broke compilation of 3 camera drivers: for PXA2x0, OMAP1 and MX1 by using a wrong pointer. Fix them. Signed-off-by: Guennadi Liakhovetski --- Mauro, if possible, would be nice to merge this with http://patchwork.linuxtv.org/patch/15990/ which is already in -next. If too late

[PATCH] mt9t112: mt9t111 format set up differs from mt9t112

2013-01-30 Thread Guennadi Liakhovetski
been verified to work with mt9t111. Limit the driver to only report one supported format with mt9t111 until more formats are implemented. Signed-off-by: Guennadi Liakhovetski --- drivers/media/i2c/soc_camera/mt9t112.c | 18 +- 1 files changed, 13 insertions(+), 5 deletions(-)

[PATCH] sh-mobile-ceu-camera: fix SHARPNESS control default

2013-01-30 Thread Guennadi Liakhovetski
The V4L2_CID_SHARPNESS control in the sh-mobile-ceu-camera driver, if off, turns the CEU low-pass filter on. This is the opposite to the hardware default and can degrade image quality. Switch default to on to restore the default unfiltered mode. Signed-off-by: Guennadi Liakhovetski --- This bug

Re: [PATCH 6/6] ARM: shmobile: convert ap4evb to asynchronously register camera subdevices

2013-01-08 Thread Guennadi Liakhovetski
Hi Simon On Tue, 8 Jan 2013, Simon Horman wrote: > On Wed, Dec 26, 2012 at 06:49:11PM +0100, Guennadi Liakhovetski wrote: > > Register the imx074 camera I2C and the CSI-2 platform devices directly > > in board platform data instead of letting the sh_mobile_ceu_camera driver

Re: [PATCH 1/6 v4] media: V4L2: support asynchronous subdevice registration

2013-01-08 Thread Guennadi Liakhovetski
On Tue, 8 Jan 2013, Laurent Pinchart wrote: > Hi Guennadi, > > On Tuesday 08 January 2013 10:56:43 Guennadi Liakhovetski wrote: > > On Tue, 8 Jan 2013, Laurent Pinchart wrote: > > > On Tuesday 08 January 2013 10:25:15 Guennadi Liakhovetski wrote: > > > >

[PATCH 1/6 v5] media: V4L2: support asynchronous subdevice registration

2013-01-08 Thread Guennadi Liakhovetski
tages during subdevice probing, e.g. after completion. Then the bridge driver can request single groups to be probed, finish its own probing and continue its video subsystem configuration from its callbacks. Signed-off-by: Guennadi Liakhovetski --- v5: Now really fix the case, when subdevices

Re: [PATCH 1/6 v4] media: V4L2: support asynchronous subdevice registration

2013-01-08 Thread Guennadi Liakhovetski
On Tue, 8 Jan 2013, Laurent Pinchart wrote: > Hi Guennadi, > > On Tuesday 08 January 2013 10:25:15 Guennadi Liakhovetski wrote: > > On Tue, 8 Jan 2013, Laurent Pinchart wrote: > > > On Monday 07 January 2013 11:23:55 Guennadi Liakhovet

Re: [PATCH 1/5] capemgr: Beaglebone DT overlay based cape manager

2013-01-08 Thread Guennadi Liakhovetski
with DT overlays, because endpoint nodes on both sides of the video data bus contain references to the other side and I don't know whether and how these can be created and / or updated at run-time. Otherwise, yes, the approach that we're currently developing on V4L allows us to build

Re: [PATCH 1/6 v4] media: V4L2: support asynchronous subdevice registration

2013-01-08 Thread Guennadi Liakhovetski
Hi Laurent On Tue, 8 Jan 2013, Laurent Pinchart wrote: > Hi Guennadi, > > Thanks for the patch. > > On Monday 07 January 2013 11:23:55 Guennadi Liakhovetski wrote: > > >From 0e1eae338ba898dc25ec60e3dba99e5581edc199 Mon Sep 17 00:00:00 2001 > > > > From:

Re: Status of the patches under review at LMML (35 patches)

2013-01-07 Thread Guennadi Liakhovetski
Hi Mauro On Sun, 6 Jan 2013, Mauro Carvalho Chehab wrote: > == Guennadi Liakhovetski == > > Oct,30 2012: [v2,2/4] media: mx2_camera: Add image size HW limits. > http://patchwork.linuxtv.org/patch/15298 Javier Martin > In the mai

Re: [PATCH 1/2] drivers/media/platform/soc_camera/pxa_camera.c: reposition free_irq to avoid access to invalid data

2013-01-07 Thread Guennadi Liakhovetski
On Mon, 7 Jan 2013, Julia Lawall wrote: > On Mon, 7 Jan 2013, Guennadi Liakhovetski wrote: > > > (adding Robert to CC) > > > > Hi Julia > > > > Thanks for the patch. > > > > On Mon, 7 Jan 2013, Julia Lawall wrote: > > > > > From

Re: [PATCH 1/2] drivers/media/platform/soc_camera/pxa_camera.c: reposition free_irq to avoid access to invalid data

2013-01-07 Thread Guennadi Liakhovetski
e > *pdev) > > clk_put(pcdev->clk); > > + free_irq(pcdev->irq, pcdev); > pxa_free_dma(pcdev->dma_chans[0]); > pxa_free_dma(pcdev->dma_chans[1]); > pxa_free_dma(pcdev->dma_chans[2]); > - free_irq(pcdev->irq, pcdev); > >

[PATCH 1/6 v4] media: V4L2: support asynchronous subdevice registration

2013-01-07 Thread Guennadi Liakhovetski
>From 0e1eae338ba898dc25ec60e3dba99e5581edc199 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Fri, 19 Oct 2012 23:40:44 +0200 Subject: [PATCH] media: V4L2: support asynchronous subdevice registration Currently bridge device drivers register devices for all subdevices synchronou

Re: DT bindings for subdevices

2013-01-04 Thread Guennadi Liakhovetski
On Fri, 4 Jan 2013, Prabhakar Lad wrote: > Hi Guennadi, > > On Wed, Jan 2, 2013 at 3:49 PM, Guennadi Liakhovetski > wrote: > > Hi Prabhakar > > > > On Wed, 2 Jan 2013, Prabhakar Lad wrote: > > > >> Hi, > >> > >> This is my firs

RE: [PATCH V3 03/15] [media] marvell-ccic: add clock tree support for marvell-ccic driver

2013-01-04 Thread Guennadi Liakhovetski
Hi Libin On Thu, 3 Jan 2013, Libin Yang wrote: > Hi Guennadi, > > Thanks for your review. Please see my comments below. > > >-Original Message- > >From: Guennadi Liakhovetski [mailto:g.liakhovet...@gmx.de] > >Sent: Wednesday, January 02, 2013 12:06 AM

[GIT PULL] soc-camera take 1 for 3.9

2013-01-03 Thread Guennadi Liakhovetski
t 3696068e4e1231311b07e5c312876deec182f18b: Add linux-next specific files for 20130103 (2013-01-03 14:24:37 +1100) are available in the git repository at: git://linuxtv.org/gliakhovetski/v4l-dvb.git for-3.9 Fabio Estevam (1): mx2_camera: Convert it to platform driver Guennadi Lia

[PATCH v2 4/6] media: soc-camera: split struct soc_camera_link into host and subdevice parts

2013-01-03 Thread Guennadi Liakhovetski
struct soc_camera_link currently contains fields, used both by sensor and bridge drivers. To make subdevice driver re-use simpler, split it into a host and a subdevice parts. Signed-off-by: Guennadi Liakhovetski --- v2: following an off-list discussion with Laurent, .add_device() and

Re: [PATCH 133/493] remove use of __devexit_p

2013-01-03 Thread Guennadi Liakhovetski
superfluous? If so, I'm sure you'd be happy to make a couple more patches to continue this series ;-) 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

Re: [PATCH RFC v2 01/15] [media] Add common video interfaces OF bindings documentation

2013-01-02 Thread Guennadi Liakhovetski
Hi Sylwester On Wed, 2 Jan 2013, Sylwester Nawrocki wrote: > Hi Guennadi, > > On 01/02/2013 12:31 PM, Guennadi Liakhovetski wrote: > > Hi Sylwester > > > > Thanks for picking up these patches! In general both look good to me, just > > a couple of nit-pick

Re: [PATCH] mt9p031: Add support for regulators

2013-01-02 Thread Guennadi Liakhovetski
v_err(&client->dev, "Unable to get regulators\n"); > + return -ENODEV; > + } > + > v4l2_ctrl_handler_init(&mt9p031->ctrls, ARRAY_SIZE(mt9p031_ctrls) + 6); > > v4l2_ctrl_new_std(&mt9p031->ctrls, &mt9p031_ctrl_ops, > -- &

Re: [PATCH RFC v2 02/15] [media] Add a V4L2 OF parser

2013-01-02 Thread Guennadi Liakhovetski
4l2-of.c > @@ -0,0 +1,249 @@ > +/* > + * V4L2 OF binding parsing library > + * > + * Copyright (C) 2012 Renesas Electronics Corp. > + * Author: Guennadi Liakhovetski > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms o

Re: [PATCH RFC v2 01/15] [media] Add common video interfaces OF bindings documentation

2013-01-02 Thread Guennadi Liakhovetski
Hi Sylwester Thanks for picking up these patches! In general both look good to me, just a couple of nit-picks, that I couldn't help remarking:-) On Mon, 31 Dec 2012, Sylwester Nawrocki wrote: > From: Guennadi Liakhovetski > > This patch adds a document describing common OF bind

Re: DT bindings for subdevices

2013-01-02 Thread Guennadi Liakhovetski
q; Presumably, ext_freq should be retrieved, using v4l2_clk_get_rate() and target_freq could be a proprietary property of your device. Thanks Guennadi > }; > > should this all be individual properties ? > > Regards, > --Prabhakar --- Guennadi Liakhovetski, Ph.D. Freelance Open-

Re: [PATCH V3 09/15] [media] marvell-ccic: add get_mcam function for marvell-ccic driver

2013-01-02 Thread Guennadi Liakhovetski
am_vb_stop_streaming(struct vb2_queue *vq) > > { > > - struct mcam_camera *cam = vb2_get_drv_priv(vq); > > + struct mcam_camera *cam = get_mcam(vq); > > unsigned long flags; > > > > if (cam->state == S_BUFWAIT) { > > @@ -1181,6 +1187,7 @@ static int mcam_vb_st

Re: [PATCH V3 08/15] [media] marvell-ccic: switch to resource managed allocation and request

2013-01-02 Thread Guennadi Liakhovetski
m); > -out_gpio2: > +out_power_down: > mmpcam_power_down(mcam); > - gpio_free(pdata->sensor_reset_gpio); > -out_gpio: > - gpio_free(pdata->sensor_power_gpio); > -out_unmap2: > +out_uninit_clk: > mcam_init_clk(mcam, pdata, 0); > - io

Re: [PATCH V3 07/15] [media] marvell-ccic: add SOF / EOF pair check for marvell-ccic driver

2013-01-01 Thread Guennadi Liakhovetski
nsure clear the obsolete frame flags before every really start > streaming. Apart from the remark, that Jon has made: Acked-by: Guennadi Liakhovetski Thanks Guennadi > > Signed-off-by: Albert Wang > Signed-off-by: Libin Yang > --- > drivers/medi

RE: [PATCH V3 06/15] [media] marvell-ccic: add new formats support for marvell-ccic driver

2013-01-01 Thread Guennadi Liakhovetski
>and the other two > >+imgsz_w = (fmt->bytesperline * 3 / 2) & IMGSZ_H_MASK; > >? But maybe I'm wrong, please, double-check and confirm. > > > [Albert Wang] It looks they are both 12 bit planar format, they have same > imgsz_w. > Anyway,

Re: [PATCH V3 06/15] [media] marvell-ccic: add new formats support for marvell-ccic driver

2013-01-01 Thread Guennadi Liakhovetski
mmon for all cases, perhaps just put it above switch? > + mvb->yuv_p.u = mvb->yuv_p.y + pixel_count; > + mvb->yuv_p.v = mvb->yuv_p.u + pixel_count / 2; > + break; > + case V4L2_PIX_FMT_YUV420: > + mvb->yuv_p.y = dma_handle; > +

Re: [PATCH V3 04/15] [media] marvell-ccic: reset ccic phy when stop streaming for stability

2013-01-01 Thread Guennadi Liakhovetski
s. > > Signed-off-by: Albert Wang > Signed-off-by: Libin Yang Acked-by: Guennadi Liakhovetski Thanks Guennadi > --- > drivers/media/platform/marvell-ccic/mcam-core.c |6 ++ > drivers/media/platform/marvell-ccic/mcam-core.h |2 ++ > drivers/media

Re: [PATCH V3 03/15] [media] marvell-ccic: add clock tree support for marvell-ccic driver

2013-01-01 Thread Guennadi Liakhovetski
the rest and just return with no error. This seems strange, usually a failure to get clocks, that the platform tells you to get, is fatal. > + if (IS_ERR(mcam->clk[i])) { > + dev_err(mcam->dev, > + "Could not get

Re: [PATCH V3 02/15] [media] marvell-ccic: add MIPI support for marvell-ccic driver

2013-01-01 Thread Guennadi Liakhovetski
= pdata->bus_type; > + mcam->dphy = pdata->dphy; > + mcam->mipi_enabled = 0; ditto > + mcam->lane = pdata->lane; > mcam->chip_id = V4L2_IDENT_ARMADA610; > mcam->buffer_mode = B_DMA_sg; > spin_lock_init(&mcam->dev_lock);

Re: [PATCH V3 01/15] [media] marvell-ccic: use internal variable replace global frame stats variable

2013-01-01 Thread Guennadi Liakhovetski
On Sat, 15 Dec 2012, Albert Wang wrote: > From: Libin Yang > > This patch replaces the global frame stats variables by using > internal variables in mcam_camera structure. > > Signed-off-by: Albert Wang > Signed-off-by: Libin Yang Acked-by: Guennadi Liakhovet

[PATCH 4/6] sh_mobile_ceu_camera: add asynchronous subdevice probing support

2012-12-26 Thread Guennadi Liakhovetski
Use the v4l2-async API to support asynchronous subdevice probing, including the CSI2 subdevice. Synchronous probing is still supported too. Signed-off-by: Guennadi Liakhovetski --- .../platform/soc_camera/sh_mobile_ceu_camera.c | 135 drivers/media/platform/soc_camera

[PATCH 6/6] ARM: shmobile: convert ap4evb to asynchronously register camera subdevices

2012-12-26 Thread Guennadi Liakhovetski
Register the imx074 camera I2C and the CSI-2 platform devices directly in board platform data instead of letting the sh_mobile_ceu_camera driver and the soc-camera framework register them at their run-time. This uses the V4L2 asynchronous subdevice probing capability. Signed-off-by: Guennadi

[PATCH 5/6] imx074: support asynchronous probing

2012-12-26 Thread Guennadi Liakhovetski
Both synchronous and asynchronous imx074 subdevice probing is supported by this patch. Signed-off-by: Guennadi Liakhovetski --- drivers/media/i2c/soc_camera/imx074.c | 23 --- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/soc_camera

[PATCH v3 0/6] V4L2 asynchronous probing + soc-camera example

2012-12-26 Thread Guennadi Liakhovetski
last version of the v4l2-clock patch. If desired, a git branch can be provided. Thanks Guennadi Guennadi Liakhovetski (6): media: V4L2: support asynchronous subdevice registration media: soc-camera: switch I2C subdevice drivers to use v4l2-clk soc-camera: add V4L2-async support

[PATCH 2/6] media: soc-camera: switch I2C subdevice drivers to use v4l2-clk

2012-12-26 Thread Guennadi Liakhovetski
Instead of centrally enabling and disabling subdevice master clocks in soc-camera core, let subdevice drivers do that themselves, using the V4L2 clock API and soc-camera convenience wrappers. Signed-off-by: Guennadi Liakhovetski --- drivers/media/i2c/soc_camera/imx074.c | 18

<    3   4   5   6   7   8   9   10   11   12   >