Skip to content

media: don't clear V4L2_SUBDEV_FL_IS_I2C

Akinobu Mita linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4media: adv7180: don't clear V4L2_SUBDEV_FL_IS_I2Cdrivers/media/i2c/adv7180.c+1 -10 replies
2/4media: max2175: don't clear V4L2_SUBDEV_FL_IS_I2Cdrivers/media/i2c/max2175.c+1 -11 reply
3/4media: ov2640: don't clear V4L2_SUBDEV_FL_IS_I2Cdrivers/media/i2c/ov2640.c+1 -10 replies
4/4media: ov5640: don't clear V4L2_SUBDEV_FL_IS_I2Cdrivers/media/i2c/ov5640.c+1 -10 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchRamesh Shanmugasundaram
1/4
2/4A-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

The v4l2_i2c_subdev_init() sets V4L2_SUBDEV_FL_IS_I2C flag in the subdev->flags. But some drivers overwrite subdev->flags immediately after calling v4l2_i2c_subdev_init(). So V4L2_SUBDEV_FL_IS_I2C is not set after all.

This patch series fixes the problem for each driver.

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.

Akinobu Mita (4):
media: adv7180: don't clear V4L2_SUBDEV_FL_IS_I2C
media: max2175: don't clear V4L2_SUBDEV_FL_IS_I2C
media: ov2640: don't clear V4L2_SUBDEV_FL_IS_I2C
media: ov5640: don't clear V4L2_SUBDEV_FL_IS_I2C

 drivers/media/i2c/adv7180.c | 2 +-
 drivers/media/i2c/max2175.c | 2 +-
 drivers/media/i2c/ov2640.c  | 2 +-
 drivers/media/i2c/ov5640.c  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
Cc Lars-Peter Clausen <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Cc Ramesh Shanmugasundaram <[email protected]>
Cc Sakari Ailus <[email protected]>
Signature · 1 line
2.7.4