Re: [PATCH v2 2/3] media: i2c: ov9734: Add power on/off sequencing support

From: GuyliandeJong

Date: Mon Nov 30 2026 - 04:51:15 EST


Hi Tin,

I tested v2 on a Microsoft Surface Laptop 2 (OV9734 behind an IPU3
CIO2, INT3472 discrete providing the reset GPIO and the clock, no
regulators), with patches 1 and 2 applied to the ov9734 driver of the
linux-surface kernel and built against 7.3.4-arch1-2-surface. The
ipu-bridge entry was already present, identical to patch 3.

With v2 the probe fails when reading the chip ID:

ov9734 i2c-OVTI9734:00: failed to find sensor: -121
ov9734 i2c-OVTI9734:00: probe with driver ov9734 failed with error -121

The 2 ms before releasing reset are fine, but 8192 cycles after it are
not enough here. I made the delay after releasing reset a module
parameter and loaded the module three times per value:

delay after reset chip ID read
427 us (v2) 0/3
600 us 0/3
1 ms 3/3
1.5, 2, 3, 5 ms 3/3 each

The clock is already running for 2 ms before reset is released, so this
doesn't look like oscillator start-up. A version of the driver that
waits 5 ms after reset has worked on every boot here.

With patch 1, the probe reached the chip ID read on every module load
and at boot, but I only have a single boot with v2, so I'm not adding a
Tested-by for it yet.

I'm happy to test a v3 on this machine.

Regards,
Guylian