[PATCH v1 0/2] media: i2c: vd55g1: preserve stream errors and always attempt stop

From: Jizhou Tong

Date: Wed Sep 30 2026 - 03:19:43 EST


This series fixes two error paths in the VD55G1 driver. Stream-start
currently replaces the original error with -EINVAL. On stream-off, a
failed exposure read prevents the subsequent stop command from being
issued because the CCI error accumulator remains set.

Preserve the stream-start error and handle the exposure read separately
from the stop sequence. The first patch builds on 5931eed35cb6, which
fixed the earlier false-success return.

Based on Linux 7.3-rc5.

Validation:
- ARM64 W=1 driver-object build.
- ASan/UBSan tests of the actual functions: twelve start failure points
with three error codes, and eight stream-off error combinations.
- Hardware use on a Surface Laptop 7 with downstream VD55G0 support;
normal IR capture and face authentication have been working.

Jizhou Tong (2):
media: i2c: vd55g1: preserve the stream-start error
media: i2c: vd55g1: stop streaming after an exposure read error

drivers/media/i2c/vd55g1.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)


base-commit: 72d3fcf802c45d00b300f25b848a93c3a2bd7c7e
--
2.53.0