[PATCH v1 0/2] i2c: qcom-cci, media: ov02c10: Fix camera power cycling

From: Saikiran

Date: Thu Oct 22 2026 - 03:17:45 EST


The OV02C10 camera on the Lenovo Yoga Slim 7x can fail to restart after
streaming stops. The CCI runtime PM callbacks gate the controller clocks
but leave the bus pins in their default state while suspended. The X1E80100
device tree already defines a CCI sleep state with pull-downs for the bus
pins, so select that state before suspending the controller and restore the
default state on resume.

The OV02C10 driver also enables the sensor supplies before MCLK and disables
MCLK before the supplies, with the required reset and startup timing. This
series fixes the power transitions without adding a regulator-off delay or
runtime autosuspend workaround.

Tested on Lenovo Yoga Slim 7x (Snapdragon X Elite): 20 consecutive Kamoso
camera open/close cycles. The sensor entered runtime-active on each open and
returned to runtime-suspended on each close. Both modified driver objects
build cleanly against the running kernel configuration.

Saikiran (2):
i2c: qcom-cci: Select pinctrl states during runtime PM
media: ov02c10: Fix sensor power sequencing

drivers/i2c/busses/i2c-qcom-cci.c | 14 +++++++++++++-
drivers/media/i2c/ov02c10.c | 20 +++++++++++---------
2 files changed, 24 insertions(+), 10 deletions(-)

--
2.56.0