[PATCH v4 0/6] MT9M114 driver bugfix and improvements

From: Mathis Foerst
Date: Fri Mar 07 2025 - 04:34:27 EST


Hi,

this patch series contains the following bugfix and improvements
for the MT9M114 camera driver:

Changelog:

v3 -> v4:
- Rename DT binding from "onnn,slew-rate" to "slew-rate" in PATCH 1 and 6 as
requested in the review comment.

v2 -> v3:
- Dropped PATCH 2 ("media: mt9m114: Add get_mbus_config").
Based on the comments, this issure won't be fixed in the MT9M114
driver but in "imx-media-csi.c" in a separate patch.
- Renumbered patches accordingly.
- Fix the incomplete renaming of the DT property from 'pad-slew-rate'
to 'onnn,slew-rate' in PATCH 1 and 6.
- Fix checkpatch formatting suggestions in PATCH 2 and 6.

v1 -> v2:
- Fix the subjects of the patches
- Dropped PATCH 1 ("Add bypass-pll DT-binding") as it can be automatically
detected if the PLL should be bypassed.
- Renumbered patches accordingly
- Switch to uint32, add default value and clarify documentation in PATCH 1
- Add 'Fixes' and 'Cc' tags as suggested in PATCH 6

Link to v1 discussion:
https://lore.kernel.org/linux-media/20250226153929.274562-1-mathis.foerst@xxxxxx/
Link to v2 discussion:
https://lore.kernel.org/linux-media/20250304103647.34235-1-mathis.foerst@xxxxxx/
Link to v3 discussion:
https://lore.kernel.org/linux-media/20250305101453.708270-1-mathis.foerst@xxxxxx/


Bugfixes:
- Fix a deadlock when using the V4L2 pad-ops get/set_frame_interval

New Features:
- Bypass the internal PLL if EXTCLK matches the configured link_frequency
- Make the slew-rate of the output pads configurable via DT
- Allow to change the cropping configuration and the horizontal/vertical
flipping while the sensor is in streaming state

Thanks,
Mathis


Mathis Foerst (6):
media: dt-bindings: mt9m114: Add slew-rate DT-binding
media: mt9m114: Bypass PLL if required
media: mt9m114: Factor out mt9m114_configure_pa
media: mt9m114: Allow set_selection while streaming
media: mt9m114: Fix deadlock in get_frame_interval/set_frame_interval
media: mt9m114: Set pad-slew-rate

.../bindings/media/i2c/onnn,mt9m114.yaml | 9 +
drivers/media/i2c/mt9m114.c | 172 ++++++++++++------
2 files changed, 130 insertions(+), 51 deletions(-)


base-commit: ac9c34d1e45a4c25174ced4fc0cfc33ff3ed08c7
--
2.34.1