From: Xiaolei Wang <xiaolei.wang@windriver.com>
To: sakari.ailus@linux.intel.com, dave.stevenson@raspberrypi.com,
jacopo@jmondi.org, mchehab@kernel.org,
prabhakar.mahadev-lad.rj@bp.renesas.com,
laurent.pinchart@ideasonboard.com, hverkuil+cisco@kernel.org,
johannes.goede@oss.qualcomm.com, hverkuil-cisco@xs4all.nl,
jai.luthra@ideasonboard.com, Xiaolei.Wang@windriver.com
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] media: i2c: ov5647: Modernize driver with CCI helpers and sub-device state lock
Date: Fri, 26 Dec 2025 11:13:09 +0800 [thread overview]
Message-ID: <20251226031311.2068414-1-xiaolei.wang@windriver.com> (raw)
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
next reply other threads:[~2025-12-26 3:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-26 3:13 Xiaolei Wang [this message]
2025-12-26 3:13 ` [PATCH 1/2] media: i2c: ov5647: Convert to CCI register access helpers Xiaolei Wang
2025-12-26 20:40 ` kernel test robot
2025-12-27 11:31 ` Laurent Pinchart
2025-12-28 6:19 ` xiaolei wang
2025-12-26 3:13 ` [PATCH 2/2] media: i2c: ov5647: Switch to using the sub-device state lock Xiaolei Wang
2025-12-27 11:21 ` Laurent Pinchart
2025-12-28 6:27 ` xiaolei wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251226031311.2068414-1-xiaolei.wang@windriver.com \
--to=xiaolei.wang@windriver.com \
--cc=dave.stevenson@raspberrypi.com \
--cc=hverkuil+cisco@kernel.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=jacopo@jmondi.org \
--cc=jai.luthra@ideasonboard.com \
--cc=johannes.goede@oss.qualcomm.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox