[PATCH 00/10] media: i2c: ov9282: fix control range handling
From: Richard Leitner
Date: Mon Sep 14 2026 - 15:22:07 EST
This series fixes a set of related issues in the OV9282 control handling
code.
The driver updated exposure- and flash duration-related control ranges
in several places, but some of those updates used an incorrect timebase
or were triggered too late, which could leave the controls clamped
against stale values.
The series:
- checks the return value of exposure range updates,
- introduces various helpers for calculating/converting times,
- refreshes flash-duration limits while the sensor is powered down,
- refreshes dependent ranges on mode changes,
- recomputes flash-duration limits when HBLANK changes,
- removes the no longer needed hblank field of the driver struct,
- harmonizes error printing during probe
This series was tested with an ov9282 sensor on a vision components camera
module attached to an i.MX8MP mainboard.
Any feedback is warmly welcome.
Thanks!
Signed-off-by: Richard Leitner <richard.leitner@xxxxxxxxx>
---
Richard Leitner (10):
media: i2c: ov9282: handle error from exposure range update
media: i2c: ov9282: fix line time and exposure time calculation
media: i2c: ov9282: fix flash duration to/from microseconds conversion
media: i2c: ov9282: update flash_duration range even when powered down
media: i2c: ov9282: add refresh of missing ranges on a mode change
media: i2c: ov9282: refresh flash_duration range on an HBLANK write
media: i2c: ov9282: drop redundant vblank field
media: i2c: ov9282: harmonize dev_err_probe usage
media: i2c: ov9282: fix flash duration control range
media: i2c: ov9282: clamp flash_duration default to its maximum
drivers/media/i2c/ov9282.c | 253 +++++++++++++++++++++++++++++++--------------
1 file changed, 174 insertions(+), 79 deletions(-)
---
base-commit: fd73f4a6659897191fa0d40695fe370925dd3780
change-id: 20260909-ov9282-fixes-da986dabc238
Best regards,
--
Richard Leitner <richard.leitner@xxxxxxxxx>