; property, suggested by Sakari Ailus
Akinobu Mita (4):
media: mt9m111: create subdevice device node
media: mt9m111: add media controller support
media: mt9m111: document missing required clocks property
media: mt9m111: add V4L2_CID_TEST_PATTERN control
.../devicetree/bindings/media/i2c/m
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>
---
* Changelog v2
2018年7月10日(火) 6:23 Sebastian Reichel :
>
> Hi,
>
> On Mon, Jul 09, 2018 at 06:14:43PM +0200, Wolfram Sang wrote:
> > > static int ov772x_read(struct i2c_client *client, u8 addr)
> > > {
> > > - int ret;
> > > - u8 val;
> > > -
> > > - ret = i2c_master_send(client, , 1);
> > > - if (ret <
C source
and Kconfig option.
- Acquire i2c adapter lock while issuing two requests for sccb_read_byte
Akinobu Mita (2):
i2c: add SCCB helpers
media: ov772x: use SCCB helpers
drivers/media/i2c/ov772x.c | 20 +++-
include/linux/i2c-sccb.h | 77
d
repeated start. Using SCCB helpers hides the implementation detail.
Cc: Peter Rosin
Cc: 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
---
include/linux/i2c-s
Convert ov772x register access to use SCCB helpers.
Cc: Peter Rosin
Cc: 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
---
drivers/media/i2c/ov772x.c | 20
in the
ov5640_restore_mode() that is called when the device is powered on.
Cc: Steve Longerbeam <slongerb...@gmail.com>
Cc: Hugues Fruchet <hugues.fruc...@st.com>
Cc: Sakari Ailus <sakari.ai...@linux.intel.com>
Cc: Mauro Carvalho Chehab <mche...@s-opensource.com>
Signed-off-by: Akinobu Mita
2018-03-13 1:18 GMT+09:00 Hugues FRUCHET :
> Hi Akinobu,
>
> Thanks for the patch, could you describe the test you made to reproduce
> the issue that I can test on my side ?
>
> I'm using usually yavta or Gstreamer, but I don't know how to trig the
> power on/off
2018-04-09 18:27 GMT+09:00 jacopo mondi <jac...@jmondi.org>:
> Hi Akinobu,
>
> On Sun, Apr 08, 2018 at 12:48:10AM +0900, Akinobu Mita wrote:
>> The ov772x driver currently only supports legacy platform data probe.
>> This change enables device tree probing.
>>
>
2018-04-09 18:06 GMT+09:00 jacopo mondi <jac...@jmondi.org>:
> Hi Akinobu,
>
> On Sun, Apr 08, 2018 at 12:48:09AM +0900, Akinobu Mita wrote:
>> This adds a device tree binding documentation for OV7720/OV7725 sensor.
>
> Please use as patch subject
> media: dt-bindings
2018-04-09 17:32 GMT+09:00 jacopo mondi <jac...@jmondi.org>:
> Hi Akinobu,
>
> On Sun, Apr 08, 2018 at 12:48:08AM +0900, Akinobu Mita wrote:
>> Create a source pad and set the media controller type to the sensor.
>>
>> Cc: Jacopo Mondi <jacopo+rene...
2018-04-09 16:36 GMT+09:00 jacopo mondi <jac...@jmondi.org>:
> Hi Akinobu,
>
> On Sun, Apr 08, 2018 at 12:48:06AM +0900, Akinobu Mita wrote:
>> This change adds checks for register read errors and returns correct
>> error code.
>>
>
> I feel like error condi
sed on the example reference project.
> On Sun, Apr 08, 2018 at 12:48:05AM +0900, Akinobu Mita wrote:
>> The ov772x driver only works when the i2c controller have
>> I2C_FUNC_PROTOCOL_MANGLING. However, many i2c controller drivers don't
>> support it.
>>
>> The reason
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
i 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/ov772x.c | 42 +-
1 file changed, 33 insertions(+), 9 deletions(-)
diff
m>
Cc: Mauro Carvalho Chehab <mche...@s-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
drivers/media/i2c/ov772x.c | 11 +--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/drivers/media/i2c/ov772x.c b/drivers/media/i2c/ov772x.c
index 283ae2c
ro Carvalho Chehab <mche...@s-opensource.com>
Cc: Rob Herring <robh...@kernel.org>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
.../devicetree/bindings/media/i2c/ov772x.txt | 36 ++
MAINTAINERS| 1 +
2 fi
This patchset includes support media controller, device tree probing and
other miscellanuous changes for ov772x driver.
Akinobu Mita (6):
media: ov772x: allow i2c controllers without
I2C_FUNC_PROTOCOL_MANGLING
media: ov772x: add checks for register read errors
media: ov772x: create
ai...@linux.intel.com>
Cc: Mauro Carvalho Chehab <mche...@s-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
drivers/media/i2c/ov772x.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/i2c/ov772x.c b/drivers/media/i2c/ov772x.c
index c56f910..4b
rvalho Chehab <mche...@s-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
drivers/media/i2c/ov772x.c | 22 --
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/drivers/media/i2c/ov772x.c b/drivers/media/i2c/ov772x.c
index 4bb81ff
> On Mon, Apr 16, 2018 at 11:51:51AM +0900, Akinobu Mita wrote:
>> The set_fmt() in subdev pad ops, the s_ctrl() for subdev control handler,
>> and the s_frame_interval() in subdev video ops could be called when the
>> device is under power saving mode. These callbacks for
2018-04-18 21:55 GMT+09:00 jacopo mondi :
>> @@ -898,8 +922,20 @@ static int ov772x_s_power(struct v4l2_subdev *sd, int
>> on)
>> /* If the power count is modified from 0 to != 0 or from != 0 to 0,
>>* update the power state.
>>*/
>> - if
rvalho Chehab <mche...@s-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
* v2
- Move video_probe() before the entity initialization and remove the #ifdef
around the media_entity_cleanup()
drivers/media/i2c/ov772x.c | 16 +++-
1 file changed, 1
ro Carvalho Chehab <mche...@s-opensource.com>
Cc: Rob Herring <robh...@kernel.org>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
* v2
- Add "dt-bindings:" in the subject
- Add a brief description of the sensor
- Update the GPIO names
- Indicate the GPIO active
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>
---
* v2
- New pat
m>
Cc: Mauro Carvalho Chehab <mche...@s-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
* v2
- Assign the ov772x_read() return value to pid and ver directly
- Do the same for MIDH and MIDL
drivers/media/i2c/ov772x.c | 20 ++--
1 file changed, 14
.intel.com>
Cc: Mauro Carvalho Chehab <mche...@s-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
* v2
- Replace the implementation of ov772x_read() instead of adding an
alternative method
drivers/media/i2c/ov772x.c | 19 ++-
1 file changed, 14
r saving mode (New)
Akinobu Mita (10):
media: ov772x: allow i2c controllers without
I2C_FUNC_PROTOCOL_MANGLING
media: ov772x: add checks for register read errors
media: ov772x: create subdevice device node
media: ov772x: add media controller support
media: ov772x: use generic na
i Ailus <sakari.ai...@linux.intel.com>
Cc: Mauro Carvalho Chehab <mche...@s-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
* v2
- New patch
drivers/media/i2c/ov772x.c | 77 +-
1 file changed, 62 insert
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
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>
Signed-off
-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
* v2
- New patch
drivers/media/i2c/ov772x.c | 33 +
1 file changed, 29 insertions(+), 4 deletions(-)
diff --git a/drivers/media/i2c/ov772x.c b/drivers/media/i2c/ov772x.c
index 4245a46
ai...@linux.intel.com>
Cc: Mauro Carvalho Chehab <mche...@s-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
* v2
- 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
2018-04-18 21:41 GMT+09:00 jacopo mondi <jac...@jmondi.org>:
> Hi Akinobu,
>
> On Mon, Apr 16, 2018 at 11:51:49AM +0900, Akinobu Mita wrote:
>> Depending on the v4l2 driver, calling s_power() could be nested. So the
>> actual transitions between power saving mod
2018-04-23 18:17 GMT+09:00 Laurent Pinchart <laurent.pinch...@ideasonboard.com>:
> Hi Mita-san,
>
> On Sunday, 22 April 2018 18:56:07 EEST Akinobu Mita wrote:
>> This adds a device tree binding documentation for OV7720/OV7725 sensor.
>>
>> Cc: Jacopo Mondi
2018-04-23 18:18 GMT+09:00 Laurent Pinchart <laurent.pinch...@ideasonboard.com>:
> Hi Mita-san,
>
> On Sunday, 22 April 2018 18:56:08 EEST Akinobu Mita wrote:
>> The ov772x driver only works when the i2c controller have
>> I2C_FUNC_PROTOCOL_MANGLING. However, many i
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>
---
* v3
- Add a Reviewed-by: line
drivers/media/i2c/ov772x.c | 20 ++--
1 file changed, 14 insertions(+), 6 de
e the GPIO active level
- Add 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 (11):
media: dt-bin
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>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
* v3
- Add Reviewed-by: lines
.
-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
* v3
- Rename mutex name from power_lock to lock
- Add warning for duplicated s_power call
drivers/media/i2c/ov772x.c | 34 ++
1 file changed, 30 insertions(+), 4 deletions(-)
diff
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
ai...@linux.intel.com>
Cc: Mauro Carvalho Chehab <mche...@s-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
* v3
- 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
rvalho Chehab <mche...@s-opensource.com>
Reviewed-by: Jacopo Mondi <jac...@jmondi.org>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
* v3
- Add a Reviewed-by: line
drivers/media/i2c/ov772x.c | 16 +++-
1 file changed, 15 insertions(+), 1 deletion(-)
i Ailus <sakari.ai...@linux.intel.com>
Cc: Mauro Carvalho Chehab <mche...@s-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
* v3
- Add newlines before labels
- Remove __v4l2_ctrl_handler_setup in s_power() as it causes duplicated
register settin
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>
---
* v3
- New pat
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>
---
* v3
- No chang
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
.intel.com>
Cc: Mauro Carvalho Chehab <mche...@s-opensource.com>
Signed-off-by: Akinobu Mita <akinobu.m...@gmail.com>
---
* v3
- Remove I2C_CLIENT_SCCB flag set as it isn't needed anymore
drivers/media/i2c/ov772x.c | 20 ++--
1 file changed, 14 insertions(+), 6 deletion
2018-04-24 0:54 GMT+09:00 Akinobu Mita <akinobu.m...@gmail.com>:
> 2018-04-23 18:17 GMT+09:00 Laurent Pinchart
> <laurent.pinch...@ideasonboard.com>:
>> Hi Mita-san,
>>
>> On Sunday, 22 April 2018 18:56:07 EEST Akinobu Mita wrote:
>>> This adds a
org>
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/ov5645.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/medi
2018年10月5日(金) 18:36 Sakari Ailus :
>
> Hi Hans,
>
> On Mon, Oct 01, 2018 at 11:40:00AM +0200, Hans Verkuil wrote:
> > On 09/23/2018 06:34 PM, Akinobu Mita wrote:
> > > The video_i2c_data is allocated by kzalloc and released by the video
> > > device's rel
2018年10月8日(月) 20:21 Hans Verkuil :
>
> On 10/05/2018 04:59 PM, Akinobu Mita wrote:
> > 2018年10月5日(金) 18:36 Sakari Ailus :
> >>
> >> Hi Hans,
> >>
> >> On Mon, Oct 01, 2018 at 11:40:00AM +0200, Hans Verkuil wrote:
> >>> On 09/23/
2018年10月17日(水) 16:19 Sakari Ailus :
>
> On Wed, Oct 17, 2018 at 12:07:50AM +0900, Akinobu Mita wrote:
> > 2018年10月16日(火) 0:31 Sakari Ailus :
> > >
> > > Hi Mita-san,
> > >
> > > On Sun, Oct 14, 2018 at 03:02:39AM +0900, Akinobu Mita wrote:
> >
Signed-off-by: Akinobu Mita
---
* v4
- No changes from v3
drivers/media/i2c/video-i2c.c | 68 ++-
1 file changed, 41 insertions(+), 27 deletions(-)
diff --git a/drivers/media/i2c/video-i2c.c b/drivers/media/i2c/video-i2c.c
index f27d294..f23cb91 100644
: Matt Ranostay
Cc: Sakari Ailus
Cc: Hans Verkuil
Cc: Mauro Carvalho Chehab
Reviewed-by: Matt Ranostay
Acked-by: Sakari Ailus
Signed-off-by: Akinobu Mita
---
* v4
- Move set_power() call into release() callback
drivers/media/i2c/video-i2c.c | 141 +-
1
Now the equivalent of FRACT_CMP() is added in v4l2 common internal API
header.
Cc: Matt Ranostay
Cc: Sakari Ailus
Cc: Hans Verkuil
Cc: Mauro Carvalho Chehab
Acked-by: Sakari Ailus
Signed-off-by: Akinobu Mita
---
* v4
- No changes from v3
drivers/media/platform/vivid/vivid-vid-cap.c | 9
Acked-by: Matt Ranostay
Acked-by: Sakari Ailus
Signed-off-by: Akinobu Mita
---
* v4
- No changes from v3
drivers/media/i2c/video-i2c.c | 78 ---
1 file changed, 66 insertions(+), 12 deletions(-)
diff --git a/drivers/media/i2c/video-i2c.c b/drivers/media/i2c
definisions
Akinobu Mita (6):
media: video-i2c: avoid accessing released memory area when removing
driver
media: video-i2c: use i2c regmap
media: v4l2-common: add V4L2_FRACT_COMPARE
media: vivid: use V4L2_FRACT_COMPARE
media: video-i2c: support changing frame interval
media: video-i2c
Chehab
Acked-by: Sakari Ailus
Signed-off-by: Akinobu Mita
---
* v4
- No changes from v3
include/media/v4l2-common.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h
index cdc87ec..eafb8a3 100644
--- a/include/media/v4l2-common.h
Cc: Hans Verkuil
Cc: Mauro Carvalho Chehab
Reviewed-by: Matt Ranostay
Signed-off-by: Akinobu Mita
---
* v4
- Add Reviewed-by line
drivers/media/i2c/video-i2c.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/drivers/media/i2c/video-i2c.c b/drivers/media/i2c/video-i
Acked-by: Matt Ranostay
Acked-by: Sakari Ailus
Signed-off-by: Akinobu Mita
---
* v3
- Add Acked-by line
drivers/media/i2c/video-i2c.c | 78 ---
1 file changed, 66 insertions(+), 12 deletions(-)
diff --git a/drivers/media/i2c/video-i2c.c b/drivers/media/i2c
Signed-off-by: Akinobu Mita
---
* v3
- Use regmap_init_i2c() instead of devm_regmap_init_i2c() and call
regmap_exit_i2c() in video device release() callback in order to
avoid releasing regmap when the driver is unbound.
- Add Acked-by lines
drivers/media/i2c/video-i2c.c | 68
Cc: Hans Verkuil
Cc: Mauro Carvalho Chehab
Signed-off-by: Akinobu Mita
---
* v3
- Move the code causing use-after-free from video_i2c_remove() to the
video device release() callback.
- Remove Acked-by line as there are enough changes from previous version
drivers/media/i2c/video-i2c.c | 11
Chehab
Acked-by: Sakari Ailus
Signed-off-by: Akinobu Mita
---
* v3
- Add Acked-by line
include/media/v4l2-common.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h
index cdc87ec..eafb8a3 100644
--- a/include/media/v4l2-common.h
+++ b
: Matt Ranostay
Cc: Sakari Ailus
Cc: Hans Verkuil
Cc: Mauro Carvalho Chehab
Reviewed-by: Matt Ranostay
Acked-by: Sakari Ailus
Signed-off-by: Akinobu Mita
---
* v3
- Move chip->set_power() call to the video device release() callback.
- Add Acked-by line
drivers/media/i2c/video-i2c.c |
Now the equivalent of FRACT_CMP() is added in v4l2 common internal API
header.
Cc: Matt Ranostay
Cc: Sakari Ailus
Cc: Hans Verkuil
Cc: Mauro Carvalho Chehab
Acked-by: Sakari Ailus
Signed-off-by: Akinobu Mita
---
* v3
- Add Acked-by line
drivers/media/platform/vivid/vivid-vid-cap.c | 9
() in v4l2 common internal API
- Add V4L2_FRACT_COMPARE() macro in v4l2 common internal API
- Use V4L2_FRACT_COMPARE() to find suitable frame interval instead of
v4l2_find_closest_fract()
- Add comment for register address definisions
Akinobu Mita (6):
media: video-i2c: avoid accessing released memory
2018年10月16日(火) 0:31 Sakari Ailus :
>
> Hi Mita-san,
>
> On Sun, Oct 14, 2018 at 03:02:39AM +0900, Akinobu Mita wrote:
> > AMG88xx has a register for setting operating mode. This adds support
> > runtime PM by changing the operating mode.
> >
> > The instructi
2018年10月28日(日) 12:49 Matt Ranostay :
>
> On Sat, Oct 20, 2018 at 7:26 AM Akinobu Mita wrote:
> >
> > Add macro to compare two v4l2_fract values in v4l2 common internal API.
> > The same macro FRACT_CMP() is used by vivid and bcm2835-camera. This just
> > renames it
2018年10月28日(日) 12:39 Matt Ranostay :
>
> On Sat, Oct 20, 2018 at 7:26 AM Akinobu Mita wrote:
> >
> > AMG88xx has a register for setting frame rate 1 or 10 FPS.
> > This adds support changing frame interval.
> >
> > Reference specifications:
> > https:/
node except for error
exit paths. Otherwise we get "OF: ERROR: Bad of_node_put() on ..."
messages.
Fixes: d079f94c9046 ("media: platform: Switch to
v4l2_async_notifier_add_subdev")
Cc: Steve Longerbeam
Cc: Hyun Kwon
Cc: Laurent Pinchart
Cc: Mauro Carvalho Chehab
Signed-
2018年11月13日(火) 19:37 Sakari Ailus :
>
> On Tue, Nov 13, 2018 at 01:00:50AM +0900, Akinobu Mita wrote:
> > The ov2640 has the test pattern generator features. This makes use of
> > it through V4L2_CID_TEST_PATTERN control.
> >
> > Cc: Sakari Ailus
> > Cc: M
The mt9m111 has special camera effects feature. This makes use of
it through V4L2_CID_COLORFX control.
Cc: Sakari Ailus
Cc: Mauro Carvalho Chehab
Signed-off-by: Akinobu Mita
---
drivers/media/i2c/mt9m111.c | 37 -
1 file changed, 36 insertions(+), 1
The ov2640 has the test pattern generator features. This makes use of
it through V4L2_CID_TEST_PATTERN control.
Cc: Sakari Ailus
Cc: Mauro Carvalho Chehab
Signed-off-by: Akinobu Mita
---
drivers/media/i2c/ov2640.c | 14 +-
1 file changed, 13 insertions(+), 1 deletion(-)
diff
This adds log_status ioctl and event interface for ov772x's v4l2 controls.
Cc: Jacopo Mondi
Cc: Sakari Ailus
Cc: Mauro Carvalho Chehab
Signed-off-by: Akinobu Mita
---
drivers/media/i2c/ov772x.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/media/i2c
This adds log_status ioctl and event interface for mt9m111's v4l2 controls.
Cc: Sakari Ailus
Cc: Mauro Carvalho Chehab
Signed-off-by: Akinobu Mita
---
drivers/media/i2c/mt9m111.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/media/i2c/mt9m111.c b/drivers
This patchset addds relatively small enhancements (log_status ioctl, event
interface, V4L2_CID_TEST_PATTERN control, and V4L2_CID_COLORFX control) for
mt9m111, ov2640, ov5640, ov7670, and ov772x drivers. I have these devices
so these patches are tested with real devices.
Akinobu Mita (7
This adds log_status ioctl and event interface for ov2640's v4l2 controls.
Cc: Sakari Ailus
Cc: Mauro Carvalho Chehab
Signed-off-by: Akinobu Mita
---
drivers/media/i2c/ov2640.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/media/i2c/ov2640.c b/drivers/media
This adds log_status ioctl and event interface for ov5640's v4l2 controls.
Cc: Steve Longerbeam
Cc: Sakari Ailus
Cc: Mauro Carvalho Chehab
Signed-off-by: Akinobu Mita
---
drivers/media/i2c/ov5640.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/media/i2c
This adds log_status ioctl and event interface for ov7670's v4l2 controls.
Cc: Jonathan Corbet
Cc: Sakari Ailus
Cc: Mauro Carvalho Chehab
Signed-off-by: Akinobu Mita
---
drivers/media/i2c/ov7670.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/media/i2c
2018年10月1日(月) 18:40 Hans Verkuil :
>
> On 09/23/2018 06:34 PM, Akinobu Mita wrote:
> > The video_i2c_data is allocated by kzalloc and released by the video
> > device's release callback. The release callback is called when
> > video_unregister_device() is called, but i
2018年10月1日(月) 18:41 Hans Verkuil :
>
> On 09/23/2018 06:34 PM, Akinobu Mita wrote:
> > This patchset adds support for changing frame interval and runtime PM for
> > video-i2c driver. This also adds an helper macro to v4l2 common
> > internal API that is used to to find a
old and might not see much use
> in newer devices, so why bother? The naming convention musn't be copied to
> newer drivers though.
>
> Any opinions?
The change for the ov9650 driver looks OK to me.
My media device setup script needs to be updated by this change, but
it is not a big deal.
Reviewed-by: Akinobu Mita
2018年9月19日(水) 19:35 Sakari Ailus :
>
> Hi Mita-san,
>
> On Tue, Sep 18, 2018 at 01:03:07AM +0900, Akinobu Mita wrote:
> > The struct video_i2c_data is released when video_unregister_device() is
> > called, but it will still be accessed after calling
> > video_un
2018年9月19日(水) 20:18 Sakari Ailus :
>
> Hi Mita-san,
>
> On Tue, Sep 18, 2018 at 01:03:09AM +0900, Akinobu Mita wrote:
> > Add a function to locate the closest element in a sorted v4l2_fract array.
> >
> > The implementation is based on find_closest() macro in linux
y
Signed-off-by: Akinobu Mita
---
* v2
- Update commit log to clarify the use after free
- Add Acked-by tag
drivers/media/i2c/video-i2c.c | 18 +-
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/drivers/media/i2c/video-i2c.c b/drivers/media/i2c/video-i2c.c
index 06d29d8..b
internal API
- Use V4L2_FRACT_COMPARE() to find suitable frame interval instead of
v4l2_find_closest_fract()
- Add comment for register address definisions
Akinobu Mita (6):
media: video-i2c: avoid accessing released memory area when removing
driver
media: video-i2c: use i2c regmap
Chehab
Signed-off-by: Akinobu Mita
---
* v2
- New patch
include/media/v4l2-common.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h
index cdc87ec..eafb8a3 100644
--- a/include/media/v4l2-common.h
+++ b/include/media/v4l2-common.h
: Matt Ranostay
Cc: Sakari Ailus
Cc: Hans Verkuil
Cc: Mauro Carvalho Chehab
Reviewed-by: Matt Ranostay
Signed-off-by: Akinobu Mita
---
* v2
- Add Reviewed-by tag
- Add comment for register address definisions
drivers/media/i2c/video-i2c.c | 142 +-
1 file
Acked-by: Matt Ranostay
Signed-off-by: Akinobu Mita
---
* v2
- Add Acked-by tag
- Add comment for frame rate register address definision
- Use V4L2_FRACT_COMPARE() to find suitable frame interval
drivers/media/i2c/video-i2c.c | 78 ---
1 file changed, 66
Now the equivalent of FRACT_CMP() is added in v4l2 common internal API
header.
Cc: Matt Ranostay
Cc: Sakari Ailus
Cc: Hans Verkuil
Cc: Mauro Carvalho Chehab
Signed-off-by: Akinobu Mita
---
* v2
- New patch
drivers/media/platform/vivid/vivid-vid-cap.c | 9 +++--
1 file changed, 3
Use regmap for i2c register access. This simplifies register accesses and
chooses suitable access commands based on the functionality that the
adapter supports.
Cc: Matt Ranostay
Cc: Sakari Ailus
Cc: Hans Verkuil
Cc: Mauro Carvalho Chehab
Signed-off-by: Akinobu Mita
---
* v2
- Add
Signed-off-by: Akinobu Mita
---
drivers/media/i2c/ov2640.c | 10 +++---
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/drivers/media/i2c/ov2640.c b/drivers/media/i2c/ov2640.c
index d8e91bc..a07e6f2 100644
--- a/drivers/media/i2c/ov2640.c
+++ b/drivers/media/i2c/ov2640.c
This driver doesn't set all members of mbus format field when the
VIDIOC_SUBDEV_{S,G}_FMT ioctls are called.
This is detected by v4l2-compliance.
Cc: Sakari Ailus
Cc: Mauro Carvalho Chehab
Signed-off-by: Akinobu Mita
---
drivers/media/i2c/ov2640.c | 6 ++
1 file changed, 6 insertions
The VIDIOC_SUBDEV_G_FMT ioctl for this driver doesn't recognize
V4L2_SUBDEV_FORMAT_TRY and always works as if V4L2_SUBDEV_FORMAT_ACTIVE
is specified.
Cc: Sakari Ailus
Cc: Mauro Carvalho Chehab
Signed-off-by: Akinobu Mita
---
drivers/media/i2c/ov2640.c | 27 +++
1 file
This patch series contains two bugfixes and a preparatory change for
ov2640 driver.
Akinobu Mita (3):
media: ov2640: set default window and format code at probe time
media: ov2640: make VIDIOC_SUBDEV_G_FMT ioctl work with
V4L2_SUBDEV_FORMAT_TRY
media: ov2640: set all mbus format field
2018年11月25日(日) 7:03 Matt Ranostay :
>
> Not all future supported video chips will always have power management
> support, and so it is important to check before calling set_power() is
> defined.
>
> Cc: Sakari Ailus
> Cc: Hans Verkuil
> Cc: Mauro Carvalho Chehab
> Cc:
: Matt Ranostay
Cc: Sakari Ailus
Cc: Hans Verkuil
Cc: Mauro Carvalho Chehab
Reviewed-by: Matt Ranostay
Acked-by: Sakari Ailus
Signed-off-by: Akinobu Mita
---
This is an update of "[PATCH v4 6/6] media: video-i2c: support runtime PM"
in the patchset "[PATCH v4 0/6] media: vid
Cc: Sakari Ailus
Cc: Hans Verkuil
Cc: Mauro Carvalho Chehab
Signed-off-by: Akinobu Mita
---
This fixes "[PATCH v4 6/6] media: video-i2c: support runtime PM" in the
patchset "[PATCH v4 0/6] media: video-i2c: support changing frame interval
and runtime PM".
drivers/media/
river")
Cc: Matt Ranostay
Cc: Sakari Ailus
Cc: Hans Verkuil
Cc: Mauro Carvalho Chehab
Signed-off-by: Akinobu Mita
---
drivers/media/i2c/video-i2c.c | 18 +-
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/drivers/media/i2c/video-i2c.c b/drivers/media/i2c/v
101 - 200 of 207 matches
Mail list logo