Skip to content

media: uvcvideo: Make sure the ctrl cache is in sync with the device

Ricardo Ribalda linux-media lkml 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20241210-uvc-data-backup-a0a76df9aee9

Versions newest first

  1. v2 Latest3 patches 8 repliesIn review
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Fix commit message (Thanks Laurent).
- Change logic for err_ctrl. It looks nicer now.
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3media: uvcvideo: Return the number of processed controlsdrivers/media/usb/uvc/uvc_ctrl.c+10 -11 reply
2/3media: uvcvideo: Send control events for partial succeedsdrivers/media/usb/uvc/uvc_ctrl.c+9 -32 replies
3/3media: uvcvideo: Rollback non processed entities on errordrivers/media/usb/uvc/uvc_ctrl.c+22 -105 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchLaurent PinchartHans de Goede
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] media: uvcvideo: Make sure the ctrl cache is in sync with the device

Hans discovered a bug in the error handling of uvc_ctrl_commit(), lets fix it.

It has been tested with v4l2-compliance -d /dev/video0

---
Changes in v2:
- Fix commit message (Thanks Laurent).
- Change logic for err_ctrl. It looks nicer now.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Ricardo Ribalda (3):
media: uvcvideo: Return the number of processed controls
media: uvcvideo: Send control events for partial succeeds
media: uvcvideo: Rollback non processed entities on error

 drivers/media/usb/uvc/uvc_ctrl.c | 53 ++++++++++++++++++++++++++++++----------
 1 file changed, 40 insertions(+), 13 deletions(-)

---
base-commit: c2b96a6818159fba8a3bcc38262da9e77f9b3ec7
change-id: 20241210-uvc-data-backup-a0a76df9aee9

Best regards,

Signature · 1 line
Ricardo Ribalda <[email protected]>