mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] media: i2c: ov5647: Modernize driver with CCI helpers and sub-device state lock
@ 2025-12-26  3:13 Xiaolei Wang
  2025-12-26  3:13 ` [PATCH 1/2] media: i2c: ov5647: Convert to CCI register access helpers Xiaolei Wang
  2025-12-26  3:13 ` [PATCH 2/2] media: i2c: ov5647: Switch to using the sub-device state lock Xiaolei Wang
  0 siblings, 2 replies; 8+ messages in thread
From: Xiaolei Wang @ 2025-12-26  3:13 UTC (permalink / raw)
  To: sakari.ailus, dave.stevenson, jacopo, mchehab,
	prabhakar.mahadev-lad.rj, laurent.pinchart, hverkuil+cisco,
	johannes.goede, hverkuil-cisco, jai.luthra, Xiaolei.Wang
  Cc: linux-media, linux-kernel

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-12-28  6:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-26  3:13 [PATCH 0/2] media: i2c: ov5647: Modernize driver with CCI helpers and sub-device state lock Xiaolei Wang
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®