media: i2c: ov02c10: Keep power on and use reset for power management
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest1 patch 14 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | media: i2c: ov02c10: Keep power on and use reset for power managementdrivers/ | +69 | 14 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/1] media: i2c: ov02c10: Keep power on and use reset for power management
This patch is a follow-up to the series "[PATCH v2 0/2] Fix OV02C10 camera pipeline lock issues" sent yesterday [1]. It addresses the remaining brownout stability issue on Snapdragon X Elite platforms.
This patch completes the v2 series by replacing the "cool-down" patch (Patch 3/3) from my original v1 submission [2].
(Note: The separate series "[PATCH 0/2] Fix OV02C10 camera color and stability issues" regarding Bayer patterns and remove() race conditions remains independent and is currently under review.)
History:
In v1 [2], I proposed a hard 3-second delay between power cycles to prevent brownouts. As discussed with Bryan O'Donoghue, that approach was a workaround with a negative user experience. This patch implements the proper fix we discussed.
Problem:
The RPMh regulators on X1E80100 platforms lack active discharge, taking 2+ seconds to passively discharge. Rapid camera cycling (e.g., WebRTC) causes brownouts because the sensor is powered on while still holding residual charge, locking the internal microcontroller.
Solution:
Instead of a delay, we now keep regulators and clocks continuously enabled after the first power-on. We control sensor state exclusively via:
1. Hardware GPIO reset
2. Software reset (OmniVision register 0x0103)
This reduces power cycle latency from ~2300ms to ~70ms (including a new 50ms stabilization delay) and eliminates brownouts entirely.
Testing:
- Validated on Lenovo Yoga Slim 7x (Snapdragon X Elite).
- Performed 100+ rapid open/close cycles with no black frames or lockups.
[1] https://lore.kernel.org/linux-media/[email protected]/T/#t
[2] https://lore.kernel.org/linux-media/[email protected]/T/#t
Saikiran (1):
media: i2c: ov02c10: Keep power on and use reset for power management
drivers/media/i2c/ov02c10.c | 119 +++++++++++++++++++++--------------- 1 file changed, 69 insertions(+), 50 deletions(-)
--
2.51.0