Re: [PATCH v3 1/9] string: introduce memweight

2012-06-21 Thread Akinobu Mita
2012/6/21 Tony Luck tony.l...@gmail.com: On Fri, Jun 8, 2012 at 5:50 PM, Akinobu Mita akinobu.m...@gmail.com wrote:  lib/string.c           |   36 Is lib/string.c the right place for this?  I get a build error on the ia64 sim_defconfig:  LD      arch

[PATCH 01/10] string: introduce memweight

2012-05-20 Thread Akinobu Mita
memweight() is the function that counts the total number of bits set in memory area. The memory area doesn't need to be aligned to long-word boundary unlike bitmap_weight(). Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Anders Larsen a...@alarsen.net Cc: Alasdair Kergon a...@redhat.com

[PATCH 06/10] video/uvc: use memweight()

2012-05-20 Thread Akinobu Mita
Use memweight() to count the total number of bits set in memory area. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Laurent Pinchart laurent.pinch...@ideasonboard.com Cc: linux-media@vger.kernel.org --- drivers/media/video/uvc/uvc_ctrl.c |5 ++--- 1 files changed, 2 insertions(+), 3

Re: [PATCH 06/10] video/uvc: use memweight()

2012-05-21 Thread Akinobu Mita
2012/5/21 Laurent Pinchart laurent.pinch...@ideasonboard.com: Hi Akinobu, Thank you for the patch. On Sunday 20 May 2012 22:23:19 Akinobu Mita wrote: Use memweight() to count the total number of bits set in memory area. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Laurent

Re: [PATCH 01/10] string: introduce memweight

2012-05-23 Thread Akinobu Mita
2012/5/23 Jan Kara j...@suse.cz: On Sun 20-05-12 22:23:14, Akinobu Mita wrote: memweight() is the function that counts the total number of bits set in memory area.  The memory area doesn't need to be aligned to long-word boundary unlike bitmap_weight().  Thanks for the patch. I have some

Re: [PATCH 01/10] string: introduce memweight

2012-05-24 Thread Akinobu Mita
2012/5/23 Matthew Wilcox matt...@wil.cx: On Wed, May 23, 2012 at 09:12:18PM +0900, Akinobu Mita wrote: size_t memweight(const void *ptr, size_t bytes) Why should this return size_t instead of unsigned long? I just use the same type as the bytes argument without mature consideration

[PATCH v2 01/10] string: introduce memweight

2012-06-02 Thread Akinobu Mita
memweight() is the function that counts the total number of bits set in memory area. Unlike bitmap_weight(), memweight() takes pointer and size in bytes to specify a memory area which does not need to be aligned to long-word boundary. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Anders

[PATCH v2 06/10] video/uvc: use memweight()

2012-06-02 Thread Akinobu Mita
Use memweight() to count the total number of bits set in memory area. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com Cc: linux-media@vger.kernel.org --- No changes from v1 drivers/media/video/uvc/uvc_ctrl.c |5 ++--- 1 files

Re: [PATCH v2 01/10] string: introduce memweight

2012-06-04 Thread Akinobu Mita
2012/6/4 Jan Kara j...@suse.cz: On Sat 02-06-12 22:40:07, Akinobu Mita wrote: memweight() is the function that counts the total number of bits set in memory area.  Unlike bitmap_weight(), memweight() takes pointer and size in bytes to specify a memory area which does not need to be aligned

Re: [PATCH v2 01/10] string: introduce memweight

2012-06-05 Thread Akinobu Mita
2012/6/4 Jan Kara j...@suse.cz: On Mon 04-06-12 20:46:14, Akinobu Mita wrote: 2012/6/4 Jan Kara j...@suse.cz: On Sat 02-06-12 22:40:07, Akinobu Mita wrote: memweight() is the function that counts the total number of bits set in memory area. áUnlike bitmap_weight(), memweight() takes

[PATCH v3 1/9] string: introduce memweight

2012-06-08 Thread Akinobu Mita
memweight() is the function that counts the total number of bits set in memory area. Unlike bitmap_weight(), memweight() takes pointer and size in bytes to specify a memory area which does not need to be aligned to long-word boundary. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Anders

[PATCH v3 5/9] video/uvc: use memweight()

2012-06-08 Thread Akinobu Mita
Use memweight() to count the total number of bits set in memory area. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com Cc: linux-media@vger.kernel.org --- No changes from v1 drivers/media/video/uvc/uvc_ctrl.c |5 ++--- 1 files

[PATCH] dt-bindings: media: xilinx: fix typo in example

2017-10-12 Thread Akinobu Mita
Fix typo s/:/;/ Cc: Rob Herring <robh...@kernel.org> Cc: Hyun Kwon <hyun.k...@xilinx.com> Cc: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- Documentation/devicetree/bindings/media/xilinx/xlnx,v-tpg.txt |

[PATCH] media: xilinx-video: fix bad of_node_put() on endpoint error

2017-10-12 Thread Akinobu Mita
for error exit paths. Otherwise we get "OF: ERROR: Bad of_node_put() on ..." messages. Cc: Hyun Kwon <hyun.k...@xilinx.com> Cc: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media/platfo

[PATCH 0/4] media: ov7670: add media controller support

2017-10-12 Thread Akinobu Mita
This series adds media controller support and other related changes to the OV7670 which is cheap and highly available CMOS image sensor for hobbyists. This enables to control a video pipeline system with the OV7670. I've tested this with the xilinx video IP pipeline. Akinobu Mita (4): media

[PATCH 1/4] media: ov7670: create subdevice device node

2017-10-12 Thread Akinobu Mita
Set the V4L2_SUBDEV_FL_HAS_DEVNODE flag for the subdevice so it is possible to create a subdevice device node. Cc: Jonathan Corbet <cor...@lwn.net> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media/i2c

[PATCH 2/4] media: ov7670: use v4l2_async_unregister_subdev()

2017-10-12 Thread Akinobu Mita
The sub-device for ov7670 is registered by v4l2_async_register_subdev(). So it should be unregistered by v4l2_async_unregister_subdev() instead of v4l2_device_unregister_subdev(). Cc: Jonathan Corbet <cor...@lwn.net> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by:

[PATCH 4/4] media: ov7670: add get_fmt() pad ops callback

2017-10-12 Thread Akinobu Mita
This enables to print the current format on the source pad of the ov7670 subdev by media-ctl. Cc: Jonathan Corbet <cor...@lwn.net> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media

[PATCH 3/4] media: ov7670: add media controller support

2017-10-12 Thread Akinobu Mita
Create a source pad and set the media controller type to the sensor. Cc: Jonathan Corbet <cor...@lwn.net> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media/i2c/ov7670.c | 17 + 1 file chan

[PATCH] media: ov7670: add V4L2_CID_TEST_PATTERN control

2017-11-24 Thread Akinobu Mita
The ov7670 has the test pattern generator features. This makes use of it through V4L2_CID_TEST_PATTERN control. Cc: Jonathan Corbet <cor...@lwn.net> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akino

[PATCH] media: ov7670: use v4l2_async_unregister_subdev()

2017-11-24 Thread Akinobu Mita
Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media/i2c/ov7670.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c index 950a0ac..b61d88e 100644 --- a/drivers/

Re: [PATCH] media: ov9650: support VIDIOC_DBG_G/S_REGISTER ioctls

2017-12-19 Thread Akinobu Mita
Hi Sakari, 2017-12-19 19:35 GMT+09:00 Sakari Ailus <sakari.ai...@iki.fi>: > Hi Akinobu, > > On Thu, Dec 14, 2017 at 01:00:49AM +0900, Akinobu Mita wrote: >> This adds support VIDIOC_DBG_G/S_REGISTER ioctls. >> >> There are many device control registers contained

[PATCH] media: ov9650: support VIDIOC_DBG_G/S_REGISTER ioctls

2017-12-13 Thread Akinobu Mita
sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media/i2c/ov9650.c | 36 1 file changed, 36 insertions(+) diff --git a/drivers/media/i2c/ov9650.c b/drivers/

Re: [PATCH] media: ov9650: remove unnecessary terminated entry in menu items array

2017-10-25 Thread Akinobu Mita
Hi Sakari, 2017-10-25 19:23 GMT+09:00 Sakari Ailus <sakari.ai...@iki.fi>: > On Tue, Oct 24, 2017 at 02:30:26AM +0900, Akinobu Mita wrote: >> The test_pattern_menu[] array has two valid items and a null terminated >> item. So the control's maximum

[PATCH 2/4] meida: mt9m111: add media controller support

2017-12-20 Thread Akinobu Mita
Create a source pad and set the media controller type to the sensor. Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media/i2c/mt9m111.c | 22

[PATCH 4/4] meida: mt9m111: add V4L2_CID_TEST_PATTERN control

2017-12-20 Thread Akinobu Mita
The mt9m111 has the test pattern generator features. This makes use of it through V4L2_CID_TEST_PATTERN control. Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> ---

[PATCH 0/4] media: mt9m111: media controller support and misc changes

2017-12-20 Thread Akinobu Mita
This series adds media controller support and other miscellaneous changes to the mt9m111 driver. The MT9M111 camera modules are easily available for the hobbyists. Akinobu Mita (4): meida: mt9m111: create subdevice device node meida: mt9m111: add media controller support meida: mt9m111

[PATCH 1/4] meida: mt9m111: create subdevice device node

2017-12-20 Thread Akinobu Mita
Set the V4L2_SUBDEV_FL_HAS_DEVNODE flag for the subdevice so that the subdevice device node is created. Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media

[PATCH 3/4] meida: mt9m111: document missing required clocks property

2017-12-20 Thread Akinobu Mita
The mt9m111 driver requires clocks property for the master clock to the sensor, but there is no description for that. This adds it. Cc: Rob Herring <r...@kernel.org> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-of

Re: [PATCH v4 10/14] media: ov772x: reconstruct s_frame_interval()

2018-05-04 Thread Akinobu Mita
2018-05-04 5:29 GMT+09:00 jacopo mondi <jac...@jmondi.org>: > Hi Akinobu, >thank you for the patch > > On Mon, Apr 30, 2018 at 02:13:09AM +0900, Akinobu Mita wrote: >> This splits the s_frame_interval() in subdev video ops into selecting the >> frame interva

[PATCH v5 10/14] media: ov772x: reconstruct s_frame_interval()

2018-05-06 Thread Akinobu Mita
ent.pinch...@ideasonboard.com> Cc: Hans Verkuil <hans.verk...@cisco.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v5 - Align arguments to open parenthesis - Sort varia

[PATCH v5 08/14] media: ov772x: support device tree probing

2018-05-06 Thread Akinobu Mita
ene...@jmondi.org> Cc: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Cc: Hans Verkuil <hans.verk...@cisco.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Reviewed-by: Jacopo Mondi <jac...@jmondi.org> Si

[PATCH v5 11/14] media: ov772x: use v4l2_ctrl to get current control value

2018-05-06 Thread Akinobu Mita
ent.pinch...@ideasonboard.com> Cc: Hans Verkuil <hans.verk...@cisco.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v5 - No changes drivers/media/i2c/ov772x.c | 34 ++

[PATCH v5 09/14] media: ov772x: handle nested s_power() calls

2018-05-06 Thread Akinobu Mita
@s-opensource.com> Reviewed-by: Jacopo Mondi <jac...@jmondi.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v5 - No changes drivers/media/i2c/ov772x.c | 34 ++ 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/drivers/media

[PATCH v5 13/14] media: ov772x: make set_fmt() and s_frame_interval() return -EBUSY while streaming

2018-05-06 Thread Akinobu Mita
ene...@jmondi.org> Cc: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Cc: Hans Verkuil <hans.verk...@cisco.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com&g

[PATCH v5 12/14] media: ov772x: avoid accessing registers under power saving mode

2018-05-06 Thread Akinobu Mita
i Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v5 - No changes drivers/media/i2c/ov772x.c | 79 +- 1 file changed, 64 insert

[PATCH v5 14/14] media: ov772x: create subdevice device node

2018-05-06 Thread Akinobu Mita
ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v5 - No changes drivers/media/i2c/ov772x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/ov772x.c b/drivers/media/i2c/ov

[PATCH v5 03/14] media: ov772x: allow i2c controllers without I2C_FUNC_PROTOCOL_MANGLING

2018-05-06 Thread Akinobu Mita
.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Cc: Wolfram Sang <w...@the-dreams.de> Reviewed-by: Jacopo Mondi <jacopo+rene...@jmondi.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v5 - Add Reviewed-by: line drivers/media/i2c/ov772x

[PATCH v5 01/14] media: dt-bindings: ov772x: add device tree binding

2018-05-06 Thread Akinobu Mita
ro Carvalho Chehab <mche...@s-opensource.com> Cc: Rob Herring <robh...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Reviewed-by: Jacopo Mondi <jac...@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Signed-off-by: Akino

[PATCH v5 04/14] media: ov772x: add checks for register read errors

2018-05-06 Thread Akinobu Mita
m> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Reviewed-by: Jacopo Mondi <jac...@jmondi.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v5 - No changes drivers/media/i2c/ov772x.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-)

[PATCH v5 00/14] media: ov772x: support media controller, device tree probing, etc.

2018-05-06 Thread Akinobu Mita
platform data if legacy platform data probe is used. - Handle nested s_power() calls (New) - Reconstruct s_frame_interval() (New) - Avoid accessing registers Akinobu Mita (14): media: dt-bindings: ov772x: add device tree binding media: ov772x: correct setting of banding filter media: ov77

[PATCH v5 02/14] media: ov772x: correct setting of banding filter

2018-05-06 Thread Akinobu Mita
.@cisco.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Acked-by: Jacopo Mondi <jacopo+rene...@jmondi.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v5 - Add Acked-by: line drivers/media/i2c/ov772x.c

[PATCH v5 06/14] media: ov772x: use generic names for reset and powerdown gpios

2018-05-06 Thread Akinobu Mita
generic names. Cc: Jacopo Mondi <jacopo+rene...@jmondi.org> Cc: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Cc: Hans Verkuil <hans.verk...@cisco.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Rev

[PATCH v5 07/14] media: ov772x: omit consumer ID when getting clock reference

2018-05-06 Thread Akinobu Mita
t;jacopo+rene...@jmondi.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v5 - No changes arch/sh/boards/mach-migor/setup.c | 2 +- drivers/media/i2c/ov772x.c| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/

[PATCH v5 05/14] media: ov772x: add media controller support

2018-05-06 Thread Akinobu Mita
rvalho Chehab <mche...@s-opensource.com> Reviewed-by: Jacopo Mondi <jac...@jmondi.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v5 - No changes drivers/media/i2c/ov772x.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/driv

Re: [PATCH v5 08/14] media: ov772x: support device tree probing

2018-05-07 Thread Akinobu Mita
2018-05-07 18:26 GMT+09:00 Sakari Ailus <sakari.ai...@linux.intel.com>: > Dear Mita-san, > > On Sun, May 06, 2018 at 11:19:23PM +0900, Akinobu Mita wrote: >> The ov772x driver currently only supports legacy platform data probe. >> This change enables devi

[RFC PATCH] i2c: add I2C_M_FORCE_STOP

2018-05-09 Thread Akinobu Mita
ari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/i2c/i2c-core-base.c | 46 ++--- include/uapi/linux/i2c.h| 1 + 2 files changed, 36 insertions(+),

Re: [RFC PATCH] media: i2c: add SCCB helpers

2018-05-09 Thread Akinobu Mita
2018-05-05 23:51 GMT+09:00 Mauro Carvalho Chehab <mchehab+sams...@kernel.org>: > Em Fri, 27 Apr 2018 01:13:32 +0900 > Akinobu Mita <akinobu.m...@gmail.com> escreveu: > >> (This patch is in prototype stage) >> >> This adds SCCB helper functi

Re: [PATCH v3 07/11] media: ov772x: handle nested s_power() calls

2018-04-27 Thread Akinobu Mita
2018-04-23 17:35 GMT+09:00 jacopo mondi <jac...@jmondi.org>: > Hi Akinobu, >thanks for v3 > > On Mon, Apr 23, 2018 at 12:56:13AM +0900, Akinobu Mita wrote: >> Depending on the v4l2 driver, calling s_power() could be nested. So the >> actual transitions betwee

Re: [PATCH v3 01/11] media: dt-bindings: ov772x: add device tree binding

2018-04-27 Thread Akinobu Mita
2018-04-27 6:34 GMT+09:00 Laurent Pinchart <laurent.pinch...@ideasonboard.com>: > Hi Mita-san, > > On Thursday, 26 April 2018 19:17:55 EEST Akinobu Mita wrote: >> 2018-04-26 7:40 GMT+09:00 Laurent Pinchart: >> > On Wednesday, 25 April 2018 19:19:11 EEST Akinobu Mit

Re: [PATCH v4 12/14] media: ov772x: avoid accessing registers under power saving mode

2018-05-04 Thread Akinobu Mita
2018-05-04 6:03 GMT+09:00 jacopo mondi <jac...@jmondi.org>: > Hi Akinobu, > let me see if I got this right... > > On Mon, Apr 30, 2018 at 02:13:11AM +0900, Akinobu Mita wrote: >> The set_fmt() in subdev pad ops, the s_ctrl() for subdev control handler, >> and th

[PATCH] media: pxa_camera: avoid duplicate s_power calls

2018-05-20 Thread Akinobu Mita
lement s_power, this introduces an trick that many V4L2 drivers are using with v4l2_fh_is_singular_file(). Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@kernel.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media/pl

Re: [PATCH] media: pxa_camera: avoid duplicate s_power calls

2018-05-24 Thread Akinobu Mita
2018-05-22 22:59 GMT+09:00 Sakari Ailus <sakari.ai...@linux.intel.com>: > Dear Mita-san, > > On Mon, May 21, 2018 at 12:40:38AM +0900, Akinobu Mita wrote: >> The open() operation for the pxa_camera driver always calls s_power() >> operation to put its subdevice sens

[PATCH] media: s3c-camif: ignore -ENOIOCTLCMD from v4l2_subdev_call for s_power

2018-06-10 Thread Akinobu Mita
: Sylwester Nawrocki Cc: Hans Verkuil Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/platform/s3c-camif/camif-capture.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/s3c-camif/camif-capture.c b/drivers/media/platform/s3c-camif

[PATCH] media: soc_camera: ov772x: correct setting of banding filter

2018-06-10 Thread Akinobu Mita
tting of banding filter") Cc: Jacopo Mondi Cc: Laurent Pinchart Cc: Hans Verkuil Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/soc_camera/ov772x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/soc_camera/o

[RFC PATCH v2] media: i2c: add SCCB helpers

2018-06-12 Thread Akinobu Mita
Sebastian Reichel Cc: Wolfram Sang Cc: Jacopo Mondi Cc: Laurent Pinchart Cc: Hans Verkuil Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- * v2 - Convert all helpers into static inline functions, and remove C source and Kconfig option. - Acquire i2c adapter lock whi

[PATCH] media: pxa_camera: ignore -ENOIOCTLCMD from v4l2_subdev_call for s_power

2018-06-03 Thread Akinobu Mita
Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/platform/pxa_camera.c | 35 +++ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/drivers/media/platform/pxa_camera.c b/drivers/media/platform/pxa_camera.c index c792cb1

Re: [PATCH v2] media: pxa_camera: avoid duplicate s_power calls

2018-05-29 Thread Akinobu Mita
2018-05-29 15:17 GMT+09:00 Hans Verkuil : > Hi Akinobu, > > On 05/27/2018 05:30 PM, Akinobu Mita wrote: >> The open() operation for the pxa_camera driver always calls s_power() >> operation to put its subdevice sensor in normal operation mode, and the >> release() op

[PATCH v2] media: pxa_camera: avoid duplicate s_power calls

2018-05-27 Thread Akinobu Mita
lement s_power, this introduces an trick that many V4L2 drivers are using with v4l2_fh_is_singular_file(). Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@kernel.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v2 - Print warn

[RFC PATCH] media: i2c: add SCCB helpers

2018-04-26 Thread Akinobu Mita
e...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media/i2c/Kconfig | 4 drivers/media/i2c/Makefile | 1 + drivers/media/i2c/sccb.c | 35 +++ drivers/media/i2c/sccb.h | 14 ++ 4 files changed, 54 insertion

Re: [PATCH v3 01/11] media: dt-bindings: ov772x: add device tree binding

2018-04-26 Thread Akinobu Mita
2018-04-26 7:40 GMT+09:00 Laurent Pinchart <laurent.pinch...@ideasonboard.com>: > Hi Mita-san, > > On Wednesday, 25 April 2018 19:19:11 EEST Akinobu Mita wrote: >> 2018-04-24 0:54 GMT+09:00 Akinobu Mita <akinobu.m...@gmail.com>: >> > 2018-04-23 18:17 GMT+09:00 L

[PATCH v4 06/14] media: ov772x: use generic names for reset and powerdown gpios

2018-04-29 Thread Akinobu Mita
generic names. Cc: Jacopo Mondi <jacopo+rene...@jmondi.org> Cc: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Cc: Hans Verkuil <hans.verk...@cisco.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Rev

[PATCH v4 12/14] media: ov772x: avoid accessing registers under power saving mode

2018-04-29 Thread Akinobu Mita
i Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v4 - No changes drivers/media/i2c/ov772x.c | 79 +- 1 file changed, 64 insert

[PATCH v4 11/14] media: ov772x: use v4l2_ctrl to get current control value

2018-04-29 Thread Akinobu Mita
ent.pinch...@ideasonboard.com> Cc: Hans Verkuil <hans.verk...@cisco.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v4 - New patch drivers/media/i2c/ov772x.c | 34 ++

[PATCH v4 04/14] media: ov772x: add checks for register read errors

2018-04-29 Thread Akinobu Mita
m> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Reviewed-by: Jacopo Mondi <jac...@jmondi.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v4 - No changes drivers/media/i2c/ov772x.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-)

[PATCH v4 10/14] media: ov772x: reconstruct s_frame_interval()

2018-04-29 Thread Akinobu Mita
ent.pinch...@ideasonboard.com> Cc: Hans Verkuil <hans.verk...@cisco.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v4 - No chang

[PATCH v4 00/14] media: ov772x: support media controller, device tree probing, etc.

2018-04-29 Thread Akinobu Mita
dd missing NULL checks for priv->info - Leave the check for the missing platform data if legacy platform data probe is used. - Handle nested s_power() calls (New) - Reconstruct s_frame_interval() (New) - Avoid accessing registers Akinobu Mita (14): media: dt-bindings: ov772x: add device

[PATCH v4 01/14] media: dt-bindings: ov772x: add device tree binding

2018-04-29 Thread Akinobu Mita
ro Carvalho Chehab <mche...@s-opensource.com> Cc: Rob Herring <robh...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Reviewed-by: Jacopo Mondi <jac...@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Signed-off-by: Akinobu Mita <

[PATCH v4 08/14] media: ov772x: support device tree probing

2018-04-29 Thread Akinobu Mita
ene...@jmondi.org> Cc: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Cc: Hans Verkuil <hans.verk...@cisco.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Reviewed-by: Jacopo Mondi <jac...@jmondi.org> Si

[PATCH v4 05/14] media: ov772x: add media controller support

2018-04-29 Thread Akinobu Mita
rvalho Chehab <mche...@s-opensource.com> Reviewed-by: Jacopo Mondi <jac...@jmondi.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v4 - No changes drivers/media/i2c/ov772x.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/driv

[PATCH v4 07/14] media: ov772x: omit consumer ID when getting clock reference

2018-04-29 Thread Akinobu Mita
t;jacopo+rene...@jmondi.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v4 - New patch arch/sh/boards/mach-migor/setup.c | 2 +- drivers/media/i2c/ov772x.c| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/

[PATCH v4 03/14] media: ov772x: allow i2c controllers without I2C_FUNC_PROTOCOL_MANGLING

2018-04-29 Thread Akinobu Mita
.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Cc: Wolfram Sang <w...@the-dreams.de> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v4 - No changes drivers/media/i2c/ov772x.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-)

[PATCH v4 13/14] media: ov772x: make set_fmt() return -EBUSY while streaming

2018-04-29 Thread Akinobu Mita
nchart <laurent.pinch...@ideasonboard.com> Cc: Hans Verkuil <hans.verk...@cisco.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v4 - No chang

[PATCH v4 02/14] media: ov772x: correct setting of banding filter

2018-04-29 Thread Akinobu Mita
.@cisco.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v4 - New patch drivers/media/i2c/ov772x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v4 14/14] media: ov772x: create subdevice device node

2018-04-29 Thread Akinobu Mita
ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v4 - No changes drivers/media/i2c/ov772x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/ov772x.c b/drivers/media/i2c/ov

[PATCH v4 09/14] media: ov772x: handle nested s_power() calls

2018-04-29 Thread Akinobu Mita
@s-opensource.com> Reviewed-by: Jacopo Mondi <jac...@jmondi.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * v4 - Add Reviewed-by: line drivers/media/i2c/ov772x.c | 34 ++ 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/driv

Re: [PATCH] dt-bindings: media: xilinx: fix typo in example

2017-10-19 Thread Akinobu Mita
2017-10-19 1:08 GMT+09:00 Laurent Pinchart <laurent.pinch...@ideasonboard.com>: > Hi Akinobu, > > Thank you for the patch. > > On Thursday, 12 October 2017 19:03:34 EEST Akinobu Mita wrote: >> Fix typo s/:/;/ >> >> Cc: Rob Herring <robh...@kernel.org>

[PATCH 2/4] media: max2175: don't clear V4L2_SUBDEV_FL_IS_I2C

2017-10-19 Thread Akinobu Mita
.@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media/i2c/max2175.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/max2175.c b/drivers/media/i2c/max2175.c index bf0e821..2f1966b 100644 --- a/drivers/media/i2c/max217

[PATCH 4/4] media: ov5640: don't clear V4L2_SUBDEV_FL_IS_I2C

2017-10-19 Thread Akinobu Mita
ce.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media/i2c/ov5640.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c index 39a2269..c89ed66 100644 --- a/drivers/media/i2c/ov5640.c +++ b/drivers/me

[PATCH 3/4] media: ov2640: don't clear V4L2_SUBDEV_FL_IS_I2C

2017-10-19 Thread Akinobu Mita
2C. Side note: According to the comment in v4l2_device_unregister(), this is problematic only if the device is platform bus device. Device tree or ACPI based devices are not affected. Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail

[PATCH 1/4] media: adv7180: don't clear V4L2_SUBDEV_FL_IS_I2C

2017-10-19 Thread Akinobu Mita
2C. Side note: According to the comment in v4l2_device_unregister(), this is problematic only if the device is platform bus device. Device tree or ACPI based devices are not affected. Cc: Lars-Peter Clausen <l...@metafoo.de> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed

[PATCH 0/4] media: don't clear V4L2_SUBDEV_FL_IS_I2C

2017-10-19 Thread Akinobu Mita
ording to the comment in v4l2_device_unregister(), this is problematic only if the device is platform bus device. Device tree or ACPI based devices are not affected. Akinobu Mita (4): media: adv7180: don't clear V4L2_SUBDEV_FL_IS_I2C media: max2175: don't clear V4L2_SUBDEV_FL_IS_I2C media:

[PATCH] media: ov9650: remove unnecessary terminated entry in menu items array

2017-10-23 Thread Akinobu Mita
terminated entry and let the correct control's maximum value be passed to v4l2_ctrl_new_std_menu_items(). Cc: Sylwester Nawrocki <sylvester.nawro...@gmail.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/medi

[PATCH] media: ov9650: support device tree probing

2018-01-05 Thread Akinobu Mita
Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Cc: Rob Herring <r...@kernel.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- .../devicetree/bindings/media/i2c/ov9650.txt | 35 +++ drivers/media/i2c/ov

[PATCH] media: xilinx-video: support pipeline power management

2018-01-05 Thread Akinobu Mita
pipeline contains such a V4L2 subdevice. Cc: Hyun Kwon <hyun.k...@xilinx.com> Cc: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media/platform/xilinx/xilinx-dma.c | 35 +++-- driv

[PATCH v2 0/2] media: ov9650: support device tree probing

2018-01-07 Thread Akinobu Mita
of probe, suggested by Sakari Ailus - Unify clk and gpio configuration in a single if-else block and, also add a check either platform data or fwnode is actually specified, suggested by Jacopo Mondi - Add CONFIG_OF guards, suggested by Jacopo Mondi Akinobu Mita (2): media: ov9650: support device

[PATCH v2 1/2] media: ov9650: support device tree probing

2018-01-07 Thread Akinobu Mita
gues Fruchet <hugues.fruc...@st.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Cc: Rob Herring <r...@kernel.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * Changelog v2 - Split binding documentation,

[PATCH v2 2/2] media: ov9650: add device tree binding

2018-01-07 Thread Akinobu Mita
m> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Cc: Rob Herring <r...@kernel.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * Changelog v2 - Split binding documentation, suggested by Rob Herring and Jacopo Mondi - Improve the wording for compatible property

[PATCH v3 0/3] media: ov9650: support device tree probing

2018-01-21 Thread Akinobu Mita
by Jacopo Mondi Akinobu Mita (3): media: ov9650: support device tree probing media: MAINTAINERS: add entry for ov9650 driver media: ov9650: add device tree binding .../devicetree/bindings/media/i2c/ov9650.txt | 36 ++ MAINTAINERS| 10

[PATCH v3 1/3] media: ov9650: support device tree probing

2018-01-21 Thread Akinobu Mita
Schaller <h...@goldelico.com> Cc: Hugues Fruchet <hugues.fruc...@st.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Cc: Rob Herring <r...@kernel.org> Reviewed-by: Sylwester Nawrocki <s.nawro...@samsun

[PATCH v3 2/3] media: MAINTAINERS: add entry for ov9650 driver

2018-01-21 Thread Akinobu Mita
Herring <r...@kernel.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e358141..8924e39 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10052,6 +10052,15 @@ S:

[PATCH v3 3/3] media: ov9650: add device tree binding

2018-01-21 Thread Akinobu Mita
com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Cc: Rob Herring <r...@kernel.org> Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * Changelog v3 - Add Reviewe

Re: [PATCH v2 1/2] media: ov9650: support device tree probing

2018-01-13 Thread Akinobu Mita
2018-01-12 23:14 GMT+09:00 Sylwester Nawrocki <s.nawro...@samsung.com>: > On 01/07/2018 05:54 PM, Akinobu Mita wrote: >> The ov9650 driver currently only supports legacy platform data probe. >> This change adds device tree probing. > >> Signed-off-by: Akinob

Re: [PATCH v2 2/2] media: ov9650: add device tree binding

2018-01-13 Thread Akinobu Mita
ven if you don't have the hardware, you can help reviwing. So if you don't mind, I would like to add the following maintainer entry for this driver. OMNIVISION OV9650 SENSOR DRIVER M: Sakari Ailus <sakari.ai...@iki.fi> R: Akinobu Mita <akinobu.m...@gmail.com> R: Sylwester

[PATCH 1/2] media: ov2640: make set_fmt() work in power-down mode

2018-02-10 Thread Akinobu Mita
.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media/i2c/ov2640.c | 71 +- 1 file changed, 57 insertions(+), 14 deletions(-) diff --git a/drivers/media/i2c/

[PATCH 0/2] media: ov2640: fix issues in power-down mode

2018-02-10 Thread Akinobu Mita
drivers handle it correctly. Akinobu Mita (2): media: ov2640: make set_fmt() work in power-down mode media: ov2640: make s_ctrl() work in power-down mode drivers/media/i2c/ov2640.c | 112 + 1 file changed, 92 insertions(+), 20 deletions(-) Cc: Sakari

[PATCH 2/2] media: ov2640: make s_ctrl() work in power-down mode

2018-02-10 Thread Akinobu Mita
Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- drivers/media/i2c/ov2640.c | 43 --- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/drivers/media/i2c/ov2640.c b/drivers/media/i2c/ov26

[PATCH v2 4/4] media: mt9m111: add V4L2_CID_TEST_PATTERN control

2018-01-03 Thread Akinobu Mita
The mt9m111 has the test pattern generator features. This makes use of it through V4L2_CID_TEST_PATTERN control. Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * Chang

[PATCH v2 2/4] media: mt9m111: add media controller support

2018-01-03 Thread Akinobu Mita
Create a source pad and set the media controller type to the sensor. Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com> --- * Changelog v2 - Fix typo s/meida/media/ in the pa

[PATCH v2 3/4] media: mt9m111: document missing required clocks property

2018-01-03 Thread Akinobu Mita
The mt9m111 driver requires clocks property for the master clock to the sensor, but there is no description for that. This adds it. Cc: Rob Herring <r...@kernel.org> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Mauro Carvalho Chehab <mche...@s-opensource.com> Signed-of

  1   2   3   >