The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 0/3] media: i2c: imx412: Modernize driver with CCI and streams API
@ 2026-03-16  9:00 Elgin Perumbilly
  2026-03-16  9:00 ` [PATCH v2 1/3] media: i2c: imx412: Convert to CCI register access helpers Elgin Perumbilly
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Elgin Perumbilly @ 2026-03-16  9:00 UTC (permalink / raw)
  To: sakari.ailus, linux-media
  Cc: tarang.raval, Elgin Perumbilly, Mauro Carvalho Chehab,
	Hans Verkuil, Hans de Goede, Vladimir Zapolskiy, Mehdi Djait,
	Xiaolei Wang, Laurent Pinchart, Sylvain Petinot, Benjamin Mugnier,
	Himanshu Bhavani, linux-kernel

This series modernizes the imx412 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.

v1 -> v2

In Patch 2/3:
- Fix incorrect sensor name in error message

Elgin Perumbilly (3):
  media: i2c: imx412: Convert to CCI register access helpers
  media: i2c: imx412: Switch to using the sub-device state lock
  media: i2c: imx412: switch to {enable,disable}_streams

 drivers/media/i2c/Kconfig  |   1 +
 drivers/media/i2c/imx412.c | 756 ++++++++++++++++---------------------
 2 files changed, 324 insertions(+), 433 deletions(-)

--
2.34.1


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

end of thread, other threads:[~2026-07-15  8:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16  9:00 [PATCH v2 0/3] media: i2c: imx412: Modernize driver with CCI and streams API Elgin Perumbilly
2026-03-16  9:00 ` [PATCH v2 1/3] media: i2c: imx412: Convert to CCI register access helpers Elgin Perumbilly
2026-07-14  8:28   ` Sakari Ailus
2026-07-14 10:23     ` Elgin Perumbilly
2026-07-15  8:14       ` Sakari Ailus
2026-03-16  9:00 ` [PATCH v2 2/3] media: i2c: imx412: Switch to using the sub-device state lock Elgin Perumbilly
2026-03-16  9:00 ` [PATCH v2 3/3] media: i2c: imx412: switch to {enable,disable}_streams Elgin Perumbilly
2026-05-28  9:50 ` [PATCH v2 0/3] media: i2c: imx412: Modernize driver with CCI and streams API Elgin Perumbilly
2026-06-30  9:29   ` Elgin Perumbilly

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