i2c: qcom-cci, media: ov02c10: Fix camera power cycling
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | i2c: qcom-cci: Select pinctrl states during runtime PMdrivers/ | +13 | 1 reply | |
| 2/2 | media: ov02c10: Fix sensor power sequencingdrivers/ | +11 | 1 reply |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Loic Poulain |
|---|---|
| 1/2 | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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