Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.174 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796050020; b=jrLJYYpo+X8Nf65vCA7vLjx4J7qprWbPonH/I/sp7zxE/oHTq74tCBGu3hE6HqKGEC5I 6iQbfXNjx9faMPW5Yv7T/B2VqXE+9MtrRJEreA4yFmjy0/BR8mFzVtytUeAaXX40ZBMpB HclkklSGIX+LZX00/yL5x0kCJIyd225ASSbNkR863LUZrEt0zIJJZs4mrcMOAaT8ksiAL UdMBePNZNhE9efhbs/LwACU475AXtTF1MM5tCr2kBStJ4rJlAg539hAN0eRXppeA4YyO+ DYkTSJdUxEt7ZGrGJi+Q8TdlwUz2waFV+0r3qMIVEIX5tzXVW0//533JVTQQXwsUmzg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796050020; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:Subject:Date: Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding: X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer; bh=lhjCcNXqArfdmFD+meibAEGZVe0wcZZEjPP95AatBl8=; b=HEu+DErvVBCxc0G9ASl79q4e7qEcgKEUM3CZuptV4ZzTjBI0lBZXQkPH6w4HytFlf5t5 58xUVQpt7X9iqJm5CFLuxwBZJdI3G6QNd1nv/evgcc5p1ht3xSwUoWR/MHIA2ZnaDEp42 dDrV84fUDqobUhS8SobEzjYMDcsbGl6qdn/+luVaonTZKooovq54u+6y7NrF47jxtKyBt 79KLYu664ePo8TRwVpt9zrRpggEQUaIDtZRCr84suHNN/1JvCmoivNNiNAgFprs7FhCX+ koWncMqNT0WzuZWghi3C+03pRK39TvJBEPrhyQ1WCyVbE90EA1fjyBnbX6Ltd7sJawA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=oUuIMkNs; arc=none smtp.remote-ip=209.85.208.174 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 115AD606A31C for ; Mon, 30 Nov 2026 14:46:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 115AD606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=oUuIMkNs Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-3ae1fd4252fso104224161fa.0 for ; Mon, 30 Nov 2026 06:46:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1796050018; x=1796654818; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=lhjCcNXqArfdmFD+meibAEGZVe0wcZZEjPP95AatBl8=; b=oUuIMkNsORHp/FRwHgWjnmC6vTgkDdtt/dGsCeDNzYCdRWtAVTj0Z1cHOxyBGzAm3G /u7lF0FFxQ+VHVOF3Xdwh1+ibuXAUHsDjvmIt7afoBBLB288aCtjuGZtc5TLTDzA7GnO n87hbaIpzzSQNNU5Y8QAWAtD26kw+SgvoStUU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796050018; x=1796654818; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=lhjCcNXqArfdmFD+meibAEGZVe0wcZZEjPP95AatBl8=; b=rlaAcTPOlFOXph/cgKy5WQOAc8ZuINNPswhstGPziceQWjyjxf3nrFcAGN/RdzSrP6 iuT6XW180H/pgbK5lyyeZubzPoVLtpr64MHKsLIcWYaKuHXvC1IPJiWw0mytPO3NfihN ouZ0vWkjBs72i3iJ28kS/uPsqmUwiWWc9XBdvlMwyFhNWj7/M9LaGeV0CgpPUoR+ADcD EQXXNc3ZNQj/rlYWCWQhqkqzA0Rnj8jC2KePx0mHlBdkfZMVbXfmVmqC8raBYL0JG1VQ r2jOH3NnyHw75jnyZ56fgs7vSeWCJ+qwZbzfBid+gBGJO5KAPLrN45CediAakX6M4p3t Wr4A== X-Gm-Message-State: APuU4Z/h3ENk0M2q4QTo8jbqZ+3x1NoPaCzVJwqZ8UQuX6H2MrmX+MDQ 7uUYK3foVkpBOBAvx1pDlc0s8m202iZMiriasxaGCmb6XW87RTLVo4d06G82Aw7f1A== X-Gm-Gg: AZFdTZe0kPjgoMVeTcKkEBQXuowhrwRbbXdl0km9XtzL/zQCQGbQ9ktyNjzTDdk2paQ 3dTqdbaQRhuCKeHZmGqYEcljhb41RA0TjTnNbi9M/A/Xgn/E8ec/zh6CY+YsbVb1GMsn/X/k+/2 eWG+k108AhzYjHZ9suNrlEWQYfJ7dV+z0UvqamOwVx3oEFFnjY5d1nV2DqASrQ2ceG+Z02n6Ww6 wZTpht844wAWVTFjQpJ8kMs7wnNmc93iZQcxaoFhl5ML1U0Jz+9QT6ciiGxBicwg6MIyFLL8Ct6 2nzP3N7MYl5Z78KSN1r2JUznNdDAa61ik+JH5I6AJEH0t6BDjveLqxQuC2W5lnGsDc4aHkcSFbR 3LohB984JxLkRZfhbI7U3HmOrVhYhCov8rwB16E3ByGXxXmWM42N/PPwtzULIaDbL+NwIcpOJ6q igWorTUIzr1YwCMlb/3S4RIpKWC+rkOerRlFbro9YFPpCpuvVvc9gzjJb9tNu7xu1ZN93uE1xCR adt8uFkDyBxyHCAeDLnZrBrbdDlhx/eNaP1Rza79ZJsf797wZkz+SFOs3v/xiA1/ntdXbwt9Q+V SBV+5wTNhPK4vXE5QcPSc+jJFXA6kHuCeAgOnqJ8dpR/mLDEg9zw3rVaDJX7IEeo87sAu9Bg3pE bruGAwqAU+w== X-Received: by 2002:a05:651c:a1a8:b0:3ac:48a0:e253 with SMTP id 38308e7fff4ca-3ae7fa1a13dmr99191001fa.23.1796050018297; Mon, 30 Nov 2026 06:46:58 -0800 (PST) Received: from ribalda.c.googlers.com (214.118.88.34.bc.googleusercontent.com. [34.88.118.214]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3ae8056b207sm87121081fa.37.2026.11.30.06.46.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 06:46:57 -0800 (PST) From: Ricardo Ribalda Subject: [PATCH v2 0/3] media: uvcvideo: Automate quirk sorting Date: Mon, 30 Nov 2026 14:46:54 +0000 Message-Id: <20261130-uvc-sorted-v2-0-795f47fbb703@chromium.org> X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAF+MDWsC/23MQQ7CIBCF4as0sxYDWDC68h6mC4WhzKLFDC3RN Nxd7Nrl/5L3bZCRCTNcuw0YC2VKcwt96MDFxzyiIN8atNRWSanFWpzIiRf04vJEgye00oQe2uH FGOi9Y/ehdaS8JP7sdlG/9S9TlJDCmmA09v6Myt5c5DTROh0TjzDUWr8YV/iYpwAAAA== X-Change-ID: 20261002-uvc-sorted-9be5e3e605f4 To: Laurent Pinchart , Hans de Goede , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Ricardo Ribalda , Hans de Goede X-Mailer: b4 0.14.3 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. I have added an "optional" patch to relax the 80 column rules. Please feel free to either squash it with the previous patch or drop it. I think that the code is nicer with it... but I am biased. 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. Signed-off-by: Ricardo Ribalda --- 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/20261002-uvc-sorted-v1-0-65f52e4d7e16@chromium.org --- Ricardo Ribalda (3): media: uvcvideo: Use USB_DEVICE_AND_INTERFACE_INFO macro media: uvcvideo: Relax the 80 columns rules for the quirk db media: uvcvideo: Sort all the uvc_ids quirks drivers/media/usb/uvc/uvc_driver.c | 737 ++++++------------------------------- 1 file changed, 122 insertions(+), 615 deletions(-) --- base-commit: 79dd149ff9244884f7c62356a9e499a934ed6071 change-id: 20261002-uvc-sorted-9be5e3e605f4 Best regards, -- Ricardo Ribalda