[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251229023018.2933405-1-xiaolei.wang@windriver.com>
Date: Mon, 29 Dec 2025 10:30:15 +0800
From: Xiaolei Wang <xiaolei.wang@...driver.com>
To: laurent.pinchart@...asonboard.com, sakari.ailus@...ux.intel.com,
dave.stevenson@...pberrypi.com, jacopo@...ndi.org, mchehab@...nel.org,
prabhakar.mahadev-lad.rj@...renesas.com, hverkuil+cisco@...nel.org,
johannes.goede@....qualcomm.com, hverkuil-cisco@...all.nl,
jai.luthra@...asonboard.com, xiaolei.wang@...driver.com
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/3] media: i2c: ov5647: Modernize driver with CCI and new stream APIs
This patch series modernizes the OV5647 camera sensor driver by:
1. Converting from private I2C register access functions to the common
CCI (Camera Control Interface) register access helpers, which
simplifies the code and provides better error handling.
2. Switching from driver-specific mutex to the sub-device state lock
and properly implementing v4l2_subdev_init_finalize() lifecycle.
3. Converting from the legacy s_stream callback to the new
enable_streams/disable_streams operations to align with current
V4L2 subsystem standards.
These changes reduce code complexity, improve maintainability, and
ensure the driver follows modern V4L2 subsystem patterns.
Changes in V2:
- Proper register width definitions
- Fixed formatting and indentation
- Error chaining implementation
- Simplified chip detection logic
- Clean compilation with -Werror
- Add a new patch, switch from s_stream to enable_streams and disable_streams callbacks.
Link to V1: https://patchwork.kernel.org/project/linux-media/cover/20251226031311.2068414-1-xiaolei.wang@windriver.com/
Xiaolei Wang (3):
media: i2c: ov5647: Convert to CCI register access helpers
media: i2c: ov5647: Switch to using the sub-device state lock
media: i2c: ov5647: switch to {enable,disable}_streams
drivers/media/i2c/Kconfig | 1 +
drivers/media/i2c/ov5647.c | 1098 ++++++++++++++++--------------------
2 files changed, 492 insertions(+), 607 deletions(-)
--
2.43.0
Powered by blists - more mailing lists