From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796106048; b=0RUmLW9w4hEaGcmTmxtsgNgtrjOlxTn3AYBho3GVKAVXqLJj8lHiaygE7Rv4KC5WLcYk SbYLWByPCFtt8B+QlNOLwyns0hAp9YYg/JdMkiW7/tuymuS1Xb6e+AvyvHv4fglfdhJ+2 XsUlK6wkKpdUgScxzpo0j9j74h3PtqGE2zYLaFh8Zri5nbAYdFzA5Ku5a3CTrnPZPGpDr Gxsho6FsxHY5QWfTnhCXAVZAOL7gJmcTQf/D3h8NW9BXbeldk2U5/2u3LdGtEYfLIZr3w U7Ch22jm6kpas/3mTfn+/TXC1Gp0F2FE9pArm3JlqEreJ8iRsV/MBCkoANNbE7wgOyQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796106048; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted: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=xJ7A/21znGH2ISLpq0eRtDVXL5/ItUKepmsA6Jf6bxM=; b=fT4vntgk79TeCQymKviu4SNWSPlJ8LsS2BRlNhIsyuXhq4dvXcVCis0CfS1ACPTaB7E8 kYL7B0bGKz3d/YGld70Wv1exGZUTaPyDKi+WmHlr2ZC6IxtzY3WsH/hLBZIe9AUxQi8V5 6gbRYP8tIODmLhh46wG0u2I42AgJ67VYNxaiG2ZBqzkXh+5KzSCIzMHwEHAq7lmbyxcx+ 3p1hapn38TQ9kQLpLqbjT9zPYuzGacapLCMskbdDmUevNlW76oQyA9xXzLKiW/SaCXgsz sYdfZnlhcox6BV8+4gozMgPa5hSFzYWt0YEmqkHhvt903DZuka0dRiiSN3apNrS1FUg== 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=EBMTsYrW; arc=none smtp.remote-ip=209.85.167.52 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 6622C606A31A for ; Tue, 1 Dec 2026 06:20:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6622C606A31A 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) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=EBMTsYrW Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-5c3683680edso10502e87.1 for ; Mon, 30 Nov 2026 22:20:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1796106046; x=1796710846; 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=xJ7A/21znGH2ISLpq0eRtDVXL5/ItUKepmsA6Jf6bxM=; b=EBMTsYrWtmzcqy/7BdaXnjdp20Aw1/+x/oAX6/MX0VunhruA1rPRqoaqEgOZQd8KB7 UIH0T6cU2YXxcVohYzLGKPQ4dZfJa4OpTmq1n+Qq/Zaq52T+rLbuyj55YKzEii5AzK2E 5puPPSqDKo4Zpbw7o03RaiZVJNSf3Wm9kxfMM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796106046; x=1796710846; 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=xJ7A/21znGH2ISLpq0eRtDVXL5/ItUKepmsA6Jf6bxM=; b=PrdhXFpmzMmaCosi7weLfzf5v2HzVHfuFb8GA2puSHRUF92hSQXQQyhN7f5CzIRP2a tJbRO+sRwdqiSJSm8Giq3MYgVgRPbCmDJAscqk+KZAGI4nWjGDxLYHNEHjKCrdHo0beC 47uTmScnNjxMunidl0OBIYOZsGNvD11Tj4Y8OZrzA93TPO8KKQlQ3J+vQbAZvsbraIkJ ue3eku4nocoHeVrV8jeAuy8dDZtkX9VP3H15HqNz65j5kuCG0YIsDMODgJE/AVsXA6YI pyzOhYUyKkmHr1w4c1WidPFrZBpyNwJhwW7j1RRZFZozBnuZj/fMrH9ru41vSGbMtCu7 c0ug== X-Forwarded-Encrypted: i=1; AL+hErFfJeMPBx4dDJD9qAkKsFA44i+pH6iPOWEccogaUqijBJ5NC9tNY7+3Jw8geT6Hd5dkDKsLZQVGdSX/NkE=@vger.kernel.org X-Gm-Message-State: APuU4Z/kPpoAhqOXKNQ47w0SqZjLgOHXhK4uGwJ62F6X+GxMPyFpM+M7 XB2qTNCYYp4ESMNqWKd1/X4hxYaohl45SYwp/nSeZZC3x0Io4oN4WEo6bCuJZ2nWNA== X-Gm-Gg: AZFdTZfk0+2usegv2uOcECv4MncVF/B21UKMaX2L2ALeh9xCrX9W7ryEwrmlhXmpq/w ct7YvnOLqEJeaJXRYxV4Aq+MwYR9QOb1AceTQ/VVeTkNfI4OCIuanun1VmD4FZzC9hvtWto/ZY/ qtqyRAvO+gov4/qVjjDd3PXaqNkV9hjLEJk9c8XdQrONaH6BNCXUoxtxn/O8YUJ56N2WAFvicds Pw65WkrUA3r4w50x6VJu0hiaAi4Uu56xnxo/gVSft2suwLd/OLBvT2ShayuD1RBkCDTG61RQ7W8 6CyoEKSxGmt31+Risr4/M5SrQWtucAhYnu4QbVBrYl5RYxLwFV9pdNFq8myLTQKQMIvFe3QkC6s plcdHCwVg2/9ffljjh22EGl/FTcdBud7BEahfwiT62cVPRxbMW6B8fwlJVm+p4CfnHuZP7p3UIw ykQZEgUsEL+1j91U4ObZcbC9y5plHt3eWQEZHgehA1cwVUc2gklJRv+BgLGw5dv/P1CofjE2fAN IPqy6vUvGtCv+zrJr1+gboh9W1ZFG1EMNTaqisnXYP8nJWRzGcV7MhxSDdM7rMDjaX04n46PP6G 0fCjjdgVdffo5iHGDW6ndCuU/1nrlZc2yWCfUGj8jrcdOn9+8ONAsdC6GL03cUqZyt5rHc2qG+i Bocsg8HnPTQ== X-Received: by 2002:a05:6512:3e03:b0:5c1:5938:cbfd with SMTP id 2adb3069b0e04-5c1bc871f19mr10780439e87.56.1796106045696; Mon, 30 Nov 2026 22:20:45 -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 2adb3069b0e04-5c1bd0176fcsm8663364e87.34.2026.11.30.22.20.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 22:20:45 -0800 (PST) From: Ricardo Ribalda Subject: [PATCH v3 0/3] media: uvcvideo: Automate quirk sorting Date: Tue, 01 Dec 2026 06:20:42 +0000 Message-Id: <20261201-uvc-sorted-v3-0-a68b2f3afb08@chromium.org> X-Mailing-List: linux-kernel@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=H4sIADpnDmsC/22Oyw6CMBBFf4XM2po+aBtc8R/GhcAUZgE1LTQaw r9b2BiNy3OTc3JXiBgII1yKFQImiuSnDOpUQDvcpx4ZdZlBcmkE55ItqWXRhxk7VjWoUaHh2pW QhUdAR88jdr1lHijOPryOdhL7+jeTBOPMaKcllp1FYep2CH6kZTz70MNeSvJjC8W/bJltW+UL1 jWN5erH3rbtDXPohjLlAAAA 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. 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 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/20261130-uvc-sorted-v2-0-795f47fbb703@chromium.org 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: 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, -- Ricardo Ribalda