mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] media: i2c: vd55g1: preserve stream errors and always attempt stop
@ 2026-10-10  9:23 fQwQf
  2026-10-13  2:54 ` [PATCH v3 " Jizhou Tong
  0 siblings, 1 reply; 6+ messages in thread
From: fQwQf @ 2026-10-10  9:23 UTC (permalink / raw)
  To: sakari.ailus, benjamin.mugnier, sylvain.petinot
  Cc: mchehab, hverkuil, linux-media, linux-kernel

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.

Changes in v2:
- Drop both Fixes tags as requested by Benjamin Mugnier.
- No code changes.

Link to v1:
https://lore.kernel.org/all/010601a0f1247437-3d2d5494-0cd2-414c-af01-a7618c8602f3-000000@ap-northeast-1.amazonses.com/

Based on Linux 7.3-rc5; also applies to current media-next
(ee2e9bf41d3e) as checked on 9 October 2026.

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.

fQwQf (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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-13  9:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-10  9:23 [PATCH v2 0/2] media: i2c: vd55g1: preserve stream errors and always attempt stop fQwQf
2026-10-13  2:54 ` [PATCH v3 " Jizhou Tong
2026-10-13  3:10   ` [PATCH v3 1/2] media: i2c: vd55g1: preserve the stream-start error Jizhou Tong
2026-10-13  9:24     ` Benjamin Mugnier
2026-10-13  3:10   ` [PATCH v3 2/2] media: i2c: vd55g1: stop streaming after an exposure read error Jizhou Tong
2026-10-13  9:24     ` Benjamin Mugnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®