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

From: Xiaolei Wang

Date: Sat Feb 28 2026 - 03:36:07 EST


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.


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 | 406 +++++++++----------------------------
2 files changed, 97 insertions(+), 310 deletions(-)

--
2.43.0