Skip to content

media: uvcvideo: Automatically handle invalid uvc_versions

Ricardo Ribalda linux-media lkml 5 versions – New

Get series with b4
b4 am [email protected] change-id 20260907-uvc-version-aedefc4384ce

Versions newest first

  1. v5 Latest2 patches 0 repliesNew
  2. v45 patches 1 replySuperseded
  3. v35 patches 15 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches0 repliesSuperseded
v11 patch0 repliesSuperseded

Changes in v5 from the cover letter

- Rebase on media-committers/next (drop patches 1, 2, and 5, already applied)
- Reorder patches so bmVideoStandards removal comes first
- Blame missing bmVideoStandards
- Link to v4: https://lore.kernel.org/r/[email protected]

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2media: uvcvideo: Do not parse bmVideoStandardsdrivers/media/usb/uvc/uvc_driver.c drivers/media/usb/uvc/uvcvideo.h+0 -30 replies
2/2media: uvcvideo: Automatically handle cameras with invalid uvc_versiondrivers/media/usb/uvc/uvc_driver.c drivers/media/usb/uvc/uvc_video.c drivers/media/usb/uvc/uvcvideo.h+42 -220 replies

Reviews trailers per patch

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

PatchHans de GoedeEdwin Gatier
1/2R-b
2/2R-b T-b

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

Read the v5 thread

Cover letter [PATCH v5 0/2] media: uvcvideo: Automatically handle invalid uvc_versions

This series changes the way we handle invalid uvc_versions. Instead of just failing it will try to continue probing.

Thanks!

---
Changes in v5:
- Rebase on media-committers/next (drop patches 1, 2, and 5, already applied)
- Reorder patches so bmVideoStandards removal comes first
- Blame missing bmVideoStandards
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Handle invalid dwMaxVideoFrameSize.
- ctrl_size -> video_ctrl_size
- CTRL_SIZE->VERSION
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Move uvc_video_ctrl_size to uvc_video_init()
- Fixes for uvc_warn_once
- Remove bmVideoStandardParsing parsing
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Add quirk for Avermedia
- Change the way the compliance error message is printed and cache
ctrl_size
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Ricardo Ribalda (2):
media: uvcvideo: Do not parse bmVideoStandards
media: uvcvideo: Automatically handle cameras with invalid uvc_version

 drivers/media/usb/uvc/uvc_driver.c | 10 +++----
 drivers/media/usb/uvc/uvc_video.c  | 54 ++++++++++++++++++++++++--------------
 drivers/media/usb/uvc/uvcvideo.h   |  3 ++-
 3 files changed, 42 insertions(+), 25 deletions(-)

---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20260907-uvc-version-aedefc4384ce

Best regards,

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