Skip to content

i2c: qcom-cci, media: ov02c10: Fix camera power cycling

Saikiran linux-arm-msm linux-i2c linux-media lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2i2c: qcom-cci: Select pinctrl states during runtime PMdrivers/i2c/busses/i2c-qcom-cci.c+13 -11 reply
2/2media: ov02c10: Fix sensor power sequencingdrivers/media/i2c/ov02c10.c+11 -91 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchLoic Poulain
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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(-)
Signature · 1 line
2.56.0