[PATCH v2 0/3] media: i2c: imx412: Modernize driver with CCI and streams API
From: Elgin Perumbilly
Date: Mon Mar 16 2026 - 05:07:22 EST
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