Skip to content

media: uvcvideo: Automate quirk sorting

Ricardo Ribalda linux-media lkml 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20261002-uvc-sorted-9be5e3e605f4

Versions newest first

  1. v3 Latest3 patches 1 replyIn review
  2. v23 patches 4 repliesSuperseded
  3. v13 patches 13 repliesSuperseded

Changes in v3 from the cover letter

- Squash "media: uvcvideo: Relax the 80 columns rules for the quirk db" into "media: uvcvideo: Use USB_DEVICE_AND_INTERFACE_INFO macro".
- Align multi-line UVC_INFO_QUIRK() entries per Laurent's review.
- Collect Reviewed-by tags from Laurent Pinchart.
- Add a new patch to fix a checkpatch warning.
- Link to v2: https://lore.kernel.org/r/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3media: uvcvideo: Use USB_DEVICE_AND_INTERFACE_INFO macrodrivers/media/usb/uvc/uvc_driver.c+101 -6050 replies
2/3media: uvcvideo: Sort all the uvc_ids quirksdrivers/media/usb/uvc/uvc_driver.c+35 -240 replies
3/3media: uvcvideo: Enclose UVC_INFO_* macros in parenthesesdrivers/media/usb/uvc/uvc_driver.c+4 -31 reply

Reviews trailers per patch

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

PatchHans de GoedeLaurent Pinchart
1/3R-b R-b
2/3R-b
3/3R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/3] media: uvcvideo: Automate quirk sorting

As the number of quirks grows it becomes more complicated to keep them sorted.

Let's rely on automation to check that all the quirks are where they are supposed to be, so we can focus on reviewing the more fun code.

We use this opportunity to modernize a bit the quirks.

An LLM has figured out the regex for the second group of devices (it is more clever than me writing regex). I have tested it.

---
Changes in v3:
- Squash "media: uvcvideo: Relax the 80 columns rules for the quirk db" into "media: uvcvideo: Use USB_DEVICE_AND_INTERFACE_INFO macro".
- Align multi-line UVC_INFO_QUIRK() entries per Laurent's review.
- Collect Reviewed-by tags from Laurent Pinchart.
- Add a new patch to fix a checkpatch warning.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Drop the patch converting Bodelin ProScopeHR to a per-device check in uvc_status.c; keep it in uvc_ids[] under a separate open-coded
matching keep-sorted block and update the uvc_ids[] comments to
document the grouping.
- Remove --- from the commit message of "media: uvcvideo: Use USB_DEVICE_AND_INTERFACE_INFO macro".
- Allow longer lines for quirks.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Ricardo Ribalda (3):
media: uvcvideo: Use USB_DEVICE_AND_INTERFACE_INFO macro
media: uvcvideo: Sort all the uvc_ids quirks
media: uvcvideo: Enclose UVC_INFO_* macros in parentheses

 drivers/media/usb/uvc/uvc_driver.c | 754 +++++++------------------------------
 1 file changed, 131 insertions(+), 623 deletions(-)

---
base-commit: 79dd149ff9244884f7c62356a9e499a934ed6071
change-id: 20261002-uvc-sorted-9be5e3e605f4

Best regards,

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