Skip to content

media: i2c: ov9282: Modernize driver with CCI and streams API

Xiaolei Wang linux-media lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 3 repliesIn review
  2. v33 patches 2 repliesSuperseded
  3. v23 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches6 repliesSuperseded

Changes in v4 from the cover letter

- patch 1: use cci_multi_reg_write() instead of regmap_multi_reg_write()
- Link to v3: https://patchwork.linuxtv.org/project/linux-media/cover/[email protected]/

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3media: i2c: ov9282: Convert to CCI register access helpersdrivers/media/i2c/Kconfig drivers/media/i2c/ov9282.c+198 -3641 reply
2/3media: i2c: ov9282: Switch to using the sub-device state lockdrivers/media/i2c/ov9282.c+20 -311 reply
3/3media: i2c: ov9282: switch to {enable,disable}_streamsdrivers/media/i2c/ov9282.c+25 -541 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchTarang RavalDave Stevenson
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b T-b

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

Read the v4 thread

Cover letter [PATCH v4 0/3] media: i2c: ov9282: Modernize driver with CCI and streams API

This series modernizes the ov9282 driver by:

1. Converting to the common CCI (Camera Control Interface) register access helpers, which simplifies the code by removing custom I2C register access functions.

2. Switching to use the V4L2 sub-device state lock instead of a private mutex, improving integration with the V4L2 framework.

3. Migrating from the legacy s_stream callback to the modern enable_streams/disable_streams callbacks, providing better support for multiplexed streams.

These changes reduce code complexity, improve maintainability, and align the driver with current V4L2 best practices.

I verified each patch on the Raspberry Pi 5 platform.

Changes in V4:
- patch 1: use cci_multi_reg_write() instead of regmap_multi_reg_write()
- Link to v3: https://patchwork.linuxtv.org/project/linux-media/cover/[email protected]/

Changes in V3:
- Patch 2:
* Remove unnecessary ret assignment in v4l2_subdev_init_finalize() error path
* Move pm_runtime_idle() call after v4l2_async_register_subdev_sensor() to avoid
potential double power-off in error handling path
- Link to v2: https://patchwork.linuxtv.org/project/linux-media/cover/[email protected]/

Changes in V2:
- Patch 1: Fixed group hold release error handling in

    ov9282_update_exp_gain()

- Patch 2: Fixed runtime PM cleanup in probe error path
- Patch 3: Improved error handling with clearer err_pm_put: label
- Link to V1: https://patchwork.linuxtv.org/project/linux-media/cover/[email protected]/

Xiaolei Wang (3):
media: i2c: ov9282: Convert to CCI register access helpers
media: i2c: ov9282: Switch to using the sub-device state lock
media: i2c: ov9282: switch to {enable,disable}_streams

 drivers/media/i2c/Kconfig  |   1 +
 drivers/media/i2c/ov9282.c | 677 +++++++++++++------------------------
 2 files changed, 236 insertions(+), 442 deletions(-)
Signature · 1 line
2.43.0