[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251226031311.2068414-1-xiaolei.wang@windriver.com>
Date: Fri, 26 Dec 2025 11:13:09 +0800
From: Xiaolei Wang <xiaolei.wang@...driver.com>
To: sakari.ailus@...ux.intel.com, dave.stevenson@...pberrypi.com,
jacopo@...ndi.org, mchehab@...nel.org,
prabhakar.mahadev-lad.rj@...renesas.com,
laurent.pinchart@...asonboard.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 0/2] media: i2c: ov5647: Modernize driver with CCI helpers and sub-device state lock
This patch series modernizes the ov5647 camera sensor driver by
adopting the latest V4L2 subsystem best practices and helper functions.
The series consists of two patches:
1. Convert the driver to use the new common CCI (Camera Control Interface)
register access helpers, which standardizes register operations and reduces
code duplication across camera sensor drivers.
2. Switch to using the sub-device state lock mechanism provided by the V4L2
framework, eliminating the need for private mutex management and improving
integration with the V4L2 subsystem.
These changes improve code maintainability, reduce the driver's footprint,
and align it with current V4L2 subsystem conventions. The functionality
remains unchanged while the code becomes more standardized and easier to
maintain.
It has been tested on a Raspberry Pi 5 and the camera works normally.
Xiaolei Wang (2):
media: i2c: ov5647: Convert to CCI register access helpers
media: i2c: ov5647: Switch to using the sub-device state lock
drivers/media/i2c/Kconfig | 1 +
drivers/media/i2c/ov5647.c | 1004 +++++++++++++++++-------------------
2 files changed, 468 insertions(+), 537 deletions(-)
--
2.43.0
Powered by blists - more mailing lists