Re: AT91SAM9M10: Problem porting driver for MT9P031 sensor

2013-04-23 Thread Guennadi Liakhovetski
ove it anyway within the next couple of days. Thanks Guennadi > > Thanks > Marcio > > On 19/04/13 10:42, "Guennadi Liakhovetski" wrote: > > >On Thu, 18 Apr 2013, Marcio Campos de Lima wrote: > > > >> Hi Guennadi > >> > >> Tha

Re: [PATCH v9 02/20] V4L2: support asynchronous subdevice registration

2013-04-23 Thread Guennadi Liakhovetski
Hi Laurent On Mon, 22 Apr 2013, Laurent Pinchart wrote: > Hi Guennadi and Sylwester, > > On Monday 15 April 2013 13:57:17 Sylwester Nawrocki wrote: > > On 04/12/2013 05:40 PM, Guennadi Liakhovetski wrote: [snip] > > > + > > > + if (notifier->unbi

Re: [PATCH 0/3] Fix some bugs in the sh_veu driver

2013-04-23 Thread Guennadi Liakhovetski
fter 3.9 is released we can also send them to stable, do you think they are important enough? Thanks Guennadi > drivers/media/platform/sh_veu.c | 15 ++- > 1 files changed, 6 insertions(+), 9 deletions(-) > > --- > Katsuya Matsubara / IGEL Co., Ltd --- Guennadi Liak

Re: [PATCH 23/24] V4L2: mt9p031: add struct v4l2_subdev_platform_data to platform data

2013-04-22 Thread Guennadi Liakhovetski
On Mon, 22 Apr 2013, Laurent Pinchart wrote: > Hi Guennadi, > > On Thursday 18 April 2013 23:47:26 Guennadi Liakhovetski wrote: > > On Thu, 18 Apr 2013, Guennadi Liakhovetski wrote: > > > Adding struct v4l2_subdev_platform_data to mt9p031's platform data allows &g

Re: [PATCH 18/24] V4L2: mt9p031: power down the sensor if no supported device has been detected

2013-04-22 Thread Guennadi Liakhovetski
Hi Laurent On Mon, 22 Apr 2013, Laurent Pinchart wrote: > Hi Guennadi, > > Thanks for the patch. > > On Thursday 18 April 2013 23:35:39 Guennadi Liakhovetski wrote: > > The mt9p031 driver first accesses the I2C device in its .registered() > > method. While doing that

Re: [PATCH] V4L2: fix subdevice matching in asynchronous probing

2013-04-22 Thread Guennadi Liakhovetski
On Mon, 22 Apr 2013, Laurent Pinchart wrote: > Hi Guennadi, > > On Friday 19 April 2013 16:41:02 Guennadi Liakhovetski wrote: > > A wrapped list iterating loop hasn't been correctly recognised in > > v4l2_async_belongs(), which led to false positives. Fix the bug

Re: [PATCH RFC v2 1/4] media: i2c: adv7343: add support for asynchronous probing

2013-04-22 Thread Guennadi Liakhovetski
Hi Prabhakar On Mon, 22 Apr 2013, Prabhakar Lad wrote: > From: Lad, Prabhakar > > Both synchronous and asynchronous adv7343 subdevice probing is supported by > this patch. > > Signed-off-by: Lad, Prabhakar > Cc: Guennadi Liakhovetski > Cc: Laurent Pinchart > Cc:

[PATCH] V4L2: fix subdevice matching in asynchronous probing

2013-04-19 Thread Guennadi Liakhovetski
A wrapped list iterating loop hasn't been correctly recognised in v4l2_async_belongs(), which led to false positives. Fix the bug by verifying the loop termination condition. Reported-by: Prabhakar Lad Signed-off-by: Guennadi Liakhovetski --- Prabhakar, please, check, whether this fixes

Re: AT91SAM9M10: Problem porting driver for MT9P031 sensor

2013-04-19 Thread Guennadi Liakhovetski
viado via iPhone > > Em 19/04/2013, às 09:42, Guennadi Liakhovetski > escreveu: > > > On Thu, 18 Apr 2013, Marcio Campos de Lima wrote: > > > >> Hi Guennadi > >> > >> Thanks a lot for your attention. > >> I think I cannot apply the patche

Re: AT91SAM9M10: Problem porting driver for MT9P031 sensor

2013-04-19 Thread Guennadi Liakhovetski
el. Thanks Guennadi > By the way, our MT9P031 sensor board has 10-bit format. I have fixed > already. > > Regards > MArcio > > On 18/04/13 19:44, "Guennadi Liakhovetski" wrote: > > >Hi Marcio > > > >On Thu, 18 Apr 2013, Marcio Campos de Lim

Re: [PATCH 21/24] V4L2: add a subdevice-driver pad-operation wrapper

2013-04-19 Thread Guennadi Liakhovetski
On Fri, 19 Apr 2013, Hans Verkuil wrote: > On Thu April 18 2013 23:35:42 Guennadi Liakhovetski wrote: > > Some subdevice drivers implement only the pad-level API, making them > > unusable with V4L2 camera host drivers, using the plain subdevice > > video API. This patch im

Re: [PATCH 06/24] V4L2: add a common V4L2 subdevice platform data type

2013-04-19 Thread Guennadi Liakhovetski
Hi Hans Thanks for reviewing. On Fri, 19 Apr 2013, Hans Verkuil wrote: > On Thu April 18 2013 23:35:27 Guennadi Liakhovetski wrote: > > This struct shall be used by subdevice drivers to pass per-subdevice data, > > e.g. power supplies, to generic V4L2 methods, at the sam

Re: [PATCH 23/24] V4L2: mt9p031: add struct v4l2_subdev_platform_data to platform data

2013-04-18 Thread Guennadi Liakhovetski
On Thu, 18 Apr 2013, Guennadi Liakhovetski wrote: > Adding struct v4l2_subdev_platform_data to mt9p031's platform data allows > the driver to use generic functions to manage sensor power supplies. > > Signed-off-by: Guennadi Liakhovetski A small addition to this one too:

Re: [PATCH 24/24] ARM: pcm037: support mt9p031 / mt9p006 camera sensors

2013-04-18 Thread Guennadi Liakhovetski
Forgot to mention explicitly: this patch is only an example, not even nearly to be considered for applying. Thanks Guennadi On Thu, 18 Apr 2013, Guennadi Liakhovetski wrote: > We don't know how to support pluggable camera sensors yet. This is just > an example, how support for an

Re: AT91SAM9M10: Problem porting driver for MT9P031 sensor

2013-04-18 Thread Guennadi Liakhovetski
= V4L2_FIELD_NONE; > mt9p031->format.colorspace = V4L2_COLORSPACE_SRGB; > isi_set_clk(); > mt9p031->pdata->ext_freq=2100; > mt9p031->pdata->target_freq=4800; > ret = mt9p031_pll_get_divs(mt9p031); > > done: > if (

[PATCH 06/24] V4L2: add a common V4L2 subdevice platform data type

2013-04-18 Thread Guennadi Liakhovetski
struct v4l2_subdev. Signed-off-by: Guennadi Liakhovetski --- include/media/v4l2-subdev.h | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h index eb91366..b15c6e0 100644 --- a/include/media/v4l2-subdev.h

[PATCH 05/24] V4L2: allow dummy file-handle initialisation by v4l2_fh_init()

2013-04-18 Thread Guennadi Liakhovetski
v4l2_fh_init() can be used to initialise dummy file-handles with vdev == NULL. Signed-off-by: Guennadi Liakhovetski --- drivers/media/v4l2-core/v4l2-fh.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-fh.c b/drivers/media/v4l2-core

[PATCH 04/24] V4L2: fix Oops on rmmod path

2013-04-18 Thread Guennadi Liakhovetski
v4l2_async_cleanup() clears the sd->dev pointer, avoid dereferencing it in v4l2_async_unregister(). Signed-off-by: Guennadi Liakhovetski --- drivers/media/v4l2-core/v4l2-async.c | 18 ++ 1 files changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/media/v4l2-c

[PATCH 07/24] soc-camera: switch to using the new struct v4l2_subdev_platform_data

2013-04-18 Thread Guennadi Liakhovetski
This prepares soc-camera to use struct v4l2_subdev_platform_data for its subdevice-facing API, which would allow subdevice driver re-use. Signed-off-by: Guennadi Liakhovetski --- drivers/media/platform/soc_camera/soc_camera.c | 20 ++-- include/media/soc_camera.h

[PATCH 09/24] SH: update all soc-camera users to new platform data layout

2013-04-18 Thread Guennadi Liakhovetski
This patch moves almost all SH soc-camera users towards re-using subdevice drivers. Only mach-ap325rxa/setup.c will be updated separately, together with other soc-camera-platform users. Signed-off-by: Guennadi Liakhovetski --- arch/sh/boards/mach-ecovec24/setup.c | 51

[PATCH 24/24] ARM: pcm037: support mt9p031 / mt9p006 camera sensors

2013-04-18 Thread Guennadi Liakhovetski
We don't know how to support pluggable camera sensors yet. This is just an example, how support for an mt9p031 or mt9p006 camera sensor could be added to pcm037. not-Signed-off-by: Guennadi Liakhovetski --- arch/arm/mach-imx/mach-pcm037.c | 44 +- 1

[PATCH 00/24] V4L2: subdevice pad-level API wrapper

2013-04-18 Thread Guennadi Liakhovetski
ntation details, but comments to general concepts would be appreciated. Further note, that patches 8-12 aren't really required. We can keep the deprecated struct soc_camera_link for now, or use a more gentle and slow way to remove it. Guennadi Liakhovetski (24): V4L2: (cosmetic) remove

[PATCH 16/24] V4L2: mt9p031: add support for V4L2 clock and asynchronous probing

2013-04-18 Thread Guennadi Liakhovetski
This adds support for V4L2 clock and asynchronous subdevice probing. Signed-off-by: Guennadi Liakhovetski --- drivers/media/i2c/mt9p031.c | 31 +-- 1 files changed, 29 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/mt9p031.c b/drivers/media/i2c

[PATCH 23/24] V4L2: mt9p031: add struct v4l2_subdev_platform_data to platform data

2013-04-18 Thread Guennadi Liakhovetski
Adding struct v4l2_subdev_platform_data to mt9p031's platform data allows the driver to use generic functions to manage sensor power supplies. Signed-off-by: Guennadi Liakhovetski --- drivers/media/i2c/mt9p031.c |1 + include/media/mt9p031.h |3 +++ 2 files changed, 4 inser

[PATCH 01/24] V4L2: (cosmetic) remove redundant use of unlikely()

2013-04-18 Thread Guennadi Liakhovetski
BUG*() and WARN*() macros specify their conditions as unlikely, using BUG_ON(unlikely(condition)) is redundant, remove it. Signed-off-by: Guennadi Liakhovetski --- include/media/v4l2-subdev.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/media/v4l2-subdev.h

[PATCH 11/24] soc-camera: completely remove struct soc_camera_link

2013-04-18 Thread Guennadi Liakhovetski
This updates the last user of struct soc_camera_link and finally removes it. Signed-off-by: Guennadi Liakhovetski --- Documentation/video4linux/soc-camera.txt |2 +- drivers/media/usb/em28xx/em28xx-camera.c | 12 +-- include/media/soc_camera.h | 48

[PATCH 20/24] V4L2: add a subdev pointer to struct v4l2_subdev_fh

2013-04-18 Thread Guennadi Liakhovetski
This is useful for cases, when there's no video-device associated with a V4L2 file-handle, e.g. in case of a dummy file-handle. Signed-off-by: Guennadi Liakhovetski --- drivers/media/v4l2-core/v4l2-subdev.c |1 + include/media/v4l2-subdev.h |4 ++-- 2 files chang

[PATCH 17/24] V4L2: mt9p031: add support for .g_mbus_config() video operation

2013-04-18 Thread Guennadi Liakhovetski
.g_mbus_config() subdevice video operation is required for subdevice drivers to be used with the soc-camera framework. Signed-off-by: Guennadi Liakhovetski --- drivers/media/i2c/mt9p031.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/drivers/media/i2c

[PATCH 21/24] V4L2: add a subdevice-driver pad-operation wrapper

2013-04-18 Thread Guennadi Liakhovetski
be added as needed. Signed-off-by: Guennadi Liakhovetski --- drivers/media/v4l2-core/Makefile|3 + drivers/media/v4l2-core/v4l2-pad-wrap.c | 329 +++ include/media/v4l2-pad-wrap.h | 23 +++ include/media/v4l2-subdev.h |2 + 4

[PATCH 18/24] V4L2: mt9p031: power down the sensor if no supported device has been detected

2013-04-18 Thread Guennadi Liakhovetski
The mt9p031 driver first accesses the I2C device in its .registered() method. While doing that it furst powers the device up, but if probing fails, it doesn't power the chip back down. This patch fixes that bug. Signed-off-by: Guennadi Liakhovetski --- drivers/media/i2c/mt9p031.c |

[PATCH 10/24] soc-camera: update soc-camera-platform & its users to a new platform data layout

2013-04-18 Thread Guennadi Liakhovetski
This patch completes removal of struct soc_camera_link by all platforms. Signed-off-by: Guennadi Liakhovetski --- arch/arm/mach-shmobile/board-mackerel.c | 23 ++-- arch/sh/boards/mach-ap325rxa/setup.c| 43 +++--- include/media/soc_camera_platform.h

[PATCH 13/24] ARM: pcm037: convert custom GPIO-based power function to a regulator

2013-04-18 Thread Guennadi Liakhovetski
Add a fixed-voltage GPIO-enabled regulator to switch the camera on and off instead of using a .power() platform callback. Signed-off-by: Guennadi Liakhovetski --- arch/arm/mach-imx/mach-pcm037.c | 54 --- 1 files changed, 39 insertions(+), 15 deletions

[PATCH 12/24] V4L2: soc-camera: retrieve subdevice platform data from struct v4l2_subdev

2013-04-18 Thread Guennadi Liakhovetski
Instead of expecting subdevice drivers to have a standard type as their platform data, use the new .pdata member of struct v4l2_subdev. This allows the use of arbitrary subdevice drivers with soc-camera in asynchronous mode. Signed-off-by: Guennadi Liakhovetski --- drivers/media/i2c/soc_camera

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

2013-04-18 Thread Guennadi Liakhovetski
During probe verify availability of platform data before dereferencing it, then use the stored pointer instead of re-calculating it. Also add an .owner field to the driver object for proper module locking. Signed-off-by: Guennadi Liakhovetski --- drivers/media/platform/soc_camera/mx3_camera.c

[PATCH 08/24] ARM: update all soc-camera users to new platform data layout

2013-04-18 Thread Guennadi Liakhovetski
This patch moves almost all ARM soc-camera users towards re-using subdevice drivers. Only mach-shmobile/board-mackerel.c will be updated separately, together with other soc-camera-platform users. Signed-off-by: Guennadi Liakhovetski --- arch/arm/mach-at91/board-sam9m10g45ek.c| 19

[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

[PATCH 22/24] V4L2: soc-camera: use the pad-operation wrapper

2013-04-18 Thread Guennadi Liakhovetski
This patch adds support for the pad-operation wrapper to soc-camera, which allows pure pad-level subdevice drivers, e.g. mt9p031 to be used with soc-camera. Signed-off-by: Guennadi Liakhovetski --- drivers/media/platform/soc_camera/soc_camera.c | 19 +-- 1 files changed, 17

[PATCH 19/24] V4L2: add struct v4l2_subdev_try_buf

2013-04-18 Thread Guennadi Liakhovetski
This patch adds struct v4l2_subdev_try_buf, used as a temporary buffer for "try" pad configuration data. Defining such a struct will simplify memory allocation for such buffers. Signed-off-by: Guennadi Liakhovetski --- include/media/v4l2-subdev.h | 12 +++- 1 files

[PATCH 03/24] mt9t031: fix NULL dereference during probe()

2013-04-18 Thread Guennadi Liakhovetski
When .s_power() is called during probing, the video device isn't available yet. Fix Oops, caused by dereferencing it. Signed-off-by: Guennadi Liakhovetski --- drivers/media/i2c/soc_camera/mt9t031.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/medi

[PATCH 02/24] imx074: fix error handling for failed async subdevice registration

2013-04-18 Thread Guennadi Liakhovetski
If v4l2_async_register_subdev() fails, don't skip the clean up. Signed-off-by: Guennadi Liakhovetski --- drivers/media/i2c/soc_camera/imx074.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/media/i2c/soc_camera/imx074.c b/drivers/media/i2c/soc_camera/i

Re: mt9v034 driver

2013-04-17 Thread Guennadi Liakhovetski
va 7 > > Ukraine > > > > T +38 032 2952597 > > F +38 032 2954879 > > E d...@conecs.lviv.ua --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ --

Re: [PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2

2013-04-17 Thread Guennadi Liakhovetski
Hi all On Tue, 2 Apr 2013, Guennadi Liakhovetski wrote: > On Tue, 2 Apr 2013, Arnd Bergmann wrote: > > > On Tuesday 02 April 2013, Guennadi Liakhovetski wrote: > > > Currently modular V4L2 build with enabled OF is broken dur to the > > > of_get_next_parent()

[PATCH v9 02/20] V4L2: support asynchronous subdevice registration

2013-04-12 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 --- v9: addressed Laurent's comments (thanks) 1. moved valid hw->bus_type

[GIT PULL] 3.10: soc-camera take 3

2013-04-12 Thread Guennadi Liakhovetski
04-08 07:28:01 -0300) are available in the git repository at: git://linuxtv.org/gliakhovetski/v4l-dvb.git for-3.10-3 Guennadi Liakhovetski (1): soc-camera: fix typos in the default format-conversion table Laurent Pinchart (1): MAINTAINERS: Mark the SH VOU driver as Odd Fixes MAINTA

[PATCH v9 04/20] soc-camera: add host clock callbacks to start and stop the master clock

2013-04-12 Thread Guennadi Liakhovetski
only start and stop the clock without and client-specific configuration. Signed-off-by: Guennadi Liakhovetski --- drivers/media/platform/soc_camera/soc_camera.c | 19 +-- include/media/soc_camera.h |2 ++ 2 files changed, 19 insertions(+), 2 deletions

[PATCH v9 03/20] soc-camera: move common code to soc_camera.c

2013-04-12 Thread Guennadi Liakhovetski
All soc-camera host drivers include a pointer to an soc-camera device in their host private struct to check, that only one client is connected. Move this common code to soc_camera.c. Signed-off-by: Guennadi Liakhovetski --- drivers/media/platform/soc_camera/atmel-isi.c | 10

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

2013-04-12 Thread Guennadi Liakhovetski
When adding and removing a client, the mx2-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 v9 15/20] sh-mobile-ceu-driver: support max width and height in DT

2013-04-12 Thread Guennadi Liakhovetski
Some CEU implementations have non-standard (larger) maximum supported width and height values. Add two OF properties to specify them. Signed-off-by: Guennadi Liakhovetski --- .../devicetree/bindings/media/sh_mobile_ceu.txt| 18 +++ .../platform/soc_camera

[PATCH v9 18/20] sh_mobile_ceu_camera: add asynchronous subdevice probing support

2013-04-12 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 | 134 - drivers/media/platform/soc_camera

[PATCH v9 14/20] sh-mobile-ceu-camera: add primitive OF support

2013-04-12 Thread Guennadi Liakhovetski
Add an OF hook to sh_mobile_ceu_camera.c, no properties so far. Booting with DT also requires platform data to be optional. Signed-off-by: Guennadi Liakhovetski --- .../platform/soc_camera/sh_mobile_ceu_camera.c | 33 ++-- 1 files changed, 23 insertions(+), 10 deletions

[PATCH v9 13/20] soc-camera: don't attach the client to the host during probing

2013-04-12 Thread Guennadi Liakhovetski
During client probing we only have to turn on the host's clock, no need to actually attach the client to the host. Signed-off-by: Guennadi Liakhovetski --- drivers/media/platform/soc_camera/soc_camera.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/

[PATCH v9 16/20] soc-camera: switch I2C subdevice drivers to use v4l2-clk

2013-04-12 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

[PATCH v9 17/20] soc-camera: add V4L2-async support

2013-04-12 Thread Guennadi Liakhovetski
, even when there are multiple such instances registered with a single soc-camera host simultaneously. Signed-off-by: Guennadi Liakhovetski --- drivers/media/platform/soc_camera/soc_camera.c | 526 include/media/soc_camera.h | 23 +- 2 files changed

[PATCH v9 12/20] soc-camera: make .clock_{start,stop} compulsory, .add / .remove optional

2013-04-12 Thread Guennadi Liakhovetski
All existing soc-camera host drivers use .clock_start() and .clock_stop() callbacks to activate and deactivate their camera interfaces, whereas .add() and .remove() callbacks are usually dummy. Make the former two compulsory and the latter two optional. Signed-off-by: Guennadi Liakhovetski

[PATCH v9 01/20] V4L2: add temporary clock helpers

2013-04-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

[PATCH v9 00/20] V4L2 clock and async patches and soc-camera example

2013-04-12 Thread Guennadi Liakhovetski
ublished earlier too, nothing extraordinary there. These patches are also available from git://linuxtv.org/gliakhovetski/v4l-dvb.git v4l2-async Cc: Guennadi Liakhovetski Guennadi Liakhovetski (20): V4L2: add temporary clock helpers V4L2: support asynchronous subdevice registration soc-came

[PATCH v9 07/20] atmel-isi: move interface activation and deactivation to clock callbacks

2013-04-12 Thread Guennadi Liakhovetski
When adding and removing a client, the atmel-isi camera host 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 Liakhov

[PATCH v9 19/20] imx074: support asynchronous probing

2013-04-12 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 | 22 +++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/soc_camera

[PATCH v9 11/20] sh-mobile-ceu-camera: move interface activation and deactivation to clock callbacks

2013-04-12 Thread Guennadi Liakhovetski
. Move the rest to .clock_start() and .clock_stop() callbacks. Signed-off-by: Guennadi Liakhovetski --- .../platform/soc_camera/sh_mobile_ceu_camera.c | 58 1 files changed, 35 insertions(+), 23 deletions(-) diff --git a/drivers/media/platform/soc_camera

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

2013-04-12 Thread Guennadi Liakhovetski
When adding and removing a client, the omap1-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 Liakhov

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

2013-04-12 Thread Guennadi Liakhovetski
When adding and removing a client, the pxa-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 v9 20/20] ARM: shmobile: convert ap4evb to asynchronously register camera subdevices

2013-04-12 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 v9 10/20] mx1-camera: move interface activation and deactivation to clock callbacks

2013-04-12 Thread Guennadi Liakhovetski
When adding and removing a client, the mx1-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 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: [PATCH v8 2/7] media: V4L2: support asynchronous subdevice registration

2013-04-12 Thread Guennadi Liakhovetski
> > + */ > > +struct v4l2_async_notifier { > > + int subdev_num; > > The number of subdevs can't be negative, could this be unsigned ? yes, here it makes sense. a simple int i; for (i = 0; i < N; i++) ... is just not worth it imho :

Re: [PATCH] drivers: media: platform: convert to devm_ioremap_resource()

2013-04-12 Thread Guennadi Liakhovetski
urn PTR_ERR(veu->base); > > ret = devm_request_threaded_irq(&pdev->dev, irq, sh_veu_isr, sh_veu_bh, > 0, "veu", veu); > -- > 1.7.9.5 > --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http:/

Re: [PATCH v8 0/7] V4L2 clock and async patches and soc-camera example

2013-04-11 Thread Guennadi Liakhovetski
Hi Sylwester On Thu, 11 Apr 2013, Sylwester Nawrocki wrote: > Hi Guennadi, > > On 04/11/2013 11:59 AM, Guennadi Liakhovetski wrote: > > Hi all > > > > On Mon, 8 Apr 2013, Guennadi Liakhovetski wrote: > > > > > > Mostly just a re-spin of v7 with m

Re: [PATCH v8 0/7] V4L2 clock and async patches and soc-camera example

2013-04-11 Thread Guennadi Liakhovetski
Hi all On Mon, 8 Apr 2013, Guennadi Liakhovetski wrote: > Mostly just a re-spin of v7 with minor modifications. > > Guennadi Liakhovetski (7): > media: V4L2: add temporary clock helpers > media: V4L2: support asynchronous subdevice registration > media: soc-camera: sw

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

2013-04-11 Thread Guennadi Liakhovetski
On Thu, 11 Apr 2013, Barry Song wrote: > 2013/4/11 Guennadi Liakhovetski : > > Hi Barry > > > > On Thu, 11 Apr 2013, Barry Song wrote: > > > >> Hi Guennadi, > >> > >> > Typical video devices like camera sensors require an external clock &

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

2013-04-11 Thread Guennadi Liakhovetski
tforms, adopting the clock API, should switch to using it. Eventually > > this temporary API should be removed. > > > Signed-off-by: Guennadi Liakhovetski > > --- > > for your patch 1/8 and 3/8, i think it makes a lot of senses to let > the object manages its own c

Re: [PATCH 07/14] media: soc-camera: support deferred probing of clients

2013-04-10 Thread Guennadi Liakhovetski
On Wed, 10 Apr 2013, Barry Song wrote: > 2013/4/10 Guennadi Liakhovetski : > > On Wed, 10 Apr 2013, Barry Song wrote: [snip] > >> > This cannot work, because some I2C devices, e.g. sensors, need a clock > >> > signal from the camera interface to pr

Re: [PATCH 07/14] media: soc-camera: support deferred probing of clients

2013-04-10 Thread Guennadi Liakhovetski
On Wed, 10 Apr 2013, Barry Song wrote: > Hi Guennadia, There's a typo above. > Thanks! > > 2013/4/10 Guennadi Liakhovetski : > > Hi Barry > > > > On Wed, 10 Apr 2013, Barry Song wrote: > > > >> Hi Guennadia, > >> > >> 2012/9

Re: [PATCH 07/14] media: soc-camera: support deferred probing of clients

2013-04-10 Thread Guennadi Liakhovetski
Hi Barry On Wed, 10 Apr 2013, Barry Song wrote: > Hi Guennadia, > > 2012/9/27 Guennadi Liakhovetski : > > Currently soc-camera doesn't work with independently registered I2C client > > devices, it has to register them itself. This patch adds support for such > &g

Re: [PATCH v8 0/7] V4L2 clock and async patches and soc-camera example

2013-04-09 Thread Guennadi Liakhovetski
Hi Simon On Tue, 9 Apr 2013, Simon Horman wrote: > On Mon, Apr 08, 2013 at 05:05:31PM +0200, Guennadi Liakhovetski wrote: > > Mostly just a re-spin of v7 with minor modifications. > > > > Guennadi Liakhovetski (7): > > media: V4L2: add temporary clock helpers

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

2013-04-08 Thread Guennadi Liakhovetski
Mostly just a re-spin of v7 with minor modifications. Guennadi Liakhovetski (7): media: V4L2: add temporary clock helpers media: V4L2: support asynchronous subdevice registration media: soc-camera: switch I2C subdevice drivers to use v4l2-clk soc-camera: add V4L2-async support

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

2013-04-08 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 | 134 - drivers/media/platform/soc_camera

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

2013-04-08 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 | 24 +--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/soc_camera

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

2013-04-08 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 v8 2/7] media: V4L2: support asynchronous subdevice registration

2013-04-08 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 --- v8: Really renamed V4L2_ASYNC_BUS_SPECIAL to V4L2_ASYNC_BUS_CUSTOM drivers

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

2013-04-08 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

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

2013-04-08 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 v8 4/7] soc-camera: add V4L2-async support

2013-04-08 Thread Guennadi Liakhovetski
, even when there are multiple such instances registered with a single soc-camera host simultaneously. Signed-off-by: Guennadi Liakhovetski --- drivers/media/platform/soc_camera/soc_camera.c | 526 include/media/soc_camera.h | 23 +- 2 files changed

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

2013-04-08 Thread Guennadi Liakhovetski
Hi Sylwester On Mon, 8 Apr 2013, Sylwester Nawrocki wrote: > Hi Guennadi, > > On 04/08/2013 01:07 PM, Guennadi Liakhovetski wrote: > > Currently bridge device drivers register devices for all subdevices > > synchronously, tupically, during their probing. E.g. if an I

Re: [PATCH 10/14] media: soc-camera: support OF cameras

2013-04-08 Thread Guennadi Liakhovetski
Hi Barry On Mon, 8 Apr 2013, Barry Song wrote: > hi Guennadi, > > 2012/9/27 Guennadi Liakhovetski : > > With OF we aren't getting platform data any more. To minimise changes we > > create all the missing data ourselves, including compulsory struct > > soc_

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

2013-04-08 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

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

2013-04-08 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 --- v7: 1. Removed bogus device reprobing from v4l2_async_unregister_subdev() 2

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

2013-04-08 Thread Guennadi Liakhovetski
, even when there are multiple such instances registered with a single soc-camera host simultaneously. Signed-off-by: Guennadi Liakhovetski --- drivers/media/platform/soc_camera/soc_camera.c | 526 include/media/soc_camera.h | 23 +- 2 files changed

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

2013-04-08 Thread Guennadi Liakhovetski
mainly addressed the API itself, users have been updated to reflect the changes. Guennadi Liakhovetski (7): media: V4L2: add temporary clock helpers media: V4L2: support asynchronous subdevice registration media: soc-camera: switch I2C subdevice drivers to use v4l2-clk soc-camera: add V4L2

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

2013-04-08 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 v7 5/7] sh_mobile_ceu_camera: add asynchronous subdevice probing support

2013-04-08 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 | 134 - drivers/media/platform/soc_camera

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

2013-04-08 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 v7 6/7] imx074: support asynchronous probing

2013-04-08 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 | 24 +--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/soc_camera

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

2013-04-08 Thread Guennadi Liakhovetski
On Wed, 27 Mar 2013, Laurent Pinchart wrote: > Hi Guennadi, > > Thanks for the patch. > > On Friday 15 March 2013 22:27:49 Guennadi Liakhovetski wrote: > > Instead of centrally enabling and disabling subdevice master clocks in > > soc-camera core, let subdevice driver

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

2013-04-08 Thread Guennadi Liakhovetski
; or return value type of this function needs to be 'long'. Otherwise > we'll get insanely large frequency value by casting this error code > to unsigned long. Comparing to the CCF: AFAICS, they do the same, you're supposed to use IS_ERR_VALUE() on the clock rate, obtaine

[GIT PULL] soc-camera for 3.10 second lot

2013-04-03 Thread Guennadi Liakhovetski
lable in the git repository at: git://linuxtv.org/gliakhovetski/v4l-dvb.git for-3.10-2 Fabio Porcedda (2): drivers: media: use module_platform_driver_probe() mx2_camera: use module_platform_driver_probe() Guennadi Liakhovetski (1): soc-camera: protect against racing open(

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

2013-04-03 Thread Guennadi Liakhovetski
On Wed, 3 Apr 2013, Fabio Porcedda wrote: > On Mon, Mar 18, 2013 at 11:09 AM, Guennadi Liakhovetski > wrote: > > Hi Fabio > > > > On Mon, 18 Mar 2013, Fabio Porcedda wrote: > > > >> The commit 39793c6 "[media] mx2_camera: Convert it to platform driver

soc-camera: last call for 3.10

2013-04-02 Thread Guennadi Liakhovetski
Guennadi Liakhovetski (1): soc-camera: protect against racing open(2) and rmmod Phil Edworthy (1): soc_camera: Add RGB666 & RGB888 formats Tushar Behera (1): atmel-isi: Update error check for unsigned variables Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelan

Re: [PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2

2013-04-02 Thread Guennadi Liakhovetski
On Tue, 2 Apr 2013, Arnd Bergmann wrote: > On Tuesday 02 April 2013, Guennadi Liakhovetski wrote: > > Currently modular V4L2 build with enabled OF is broken dur to the > > of_get_next_parent() function being unavailable to modules. Export it to > > fix the build. > >

[PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2

2013-04-02 Thread Guennadi Liakhovetski
Currently modular V4L2 build with enabled OF is broken dur to the of_get_next_parent() function being unavailable to modules. Export it to fix the build. Cc: Sylwester Nawrocki Signed-off-by: Guennadi Liakhovetski --- This is for 3.10 drivers/of/base.c |1 + 1 files changed, 1 insertions

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

2013-04-02 Thread Guennadi Liakhovetski
On Tue, 2 Apr 2013, Sylwester Nawrocki wrote: > Hi Guennadi, > > On 04/02/2013 04:54 PM, Guennadi Liakhovetski wrote: > > On Tue, 2 Apr 2013, Sylwester Nawrocki wrote: > > > >> > v4l2_of_parse_parallel_bus() function is now static and > >> > EXPOR

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