Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp3066952lqz; Wed, 3 Apr 2024 18:11:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrZ49ojR8Y3wTxs+ZYeGk68iRJyte2IY9sCg6/Twj4CWemzUBTwyXaZLa8kAM6h5kuRmLLRF4ViR3QeRNE2wpWBRfTl3Xw4qiTL++0Kw== X-Google-Smtp-Source: AGHT+IHFxGPur+Kut5SjeqyO/uPY8xInhevYn9sadqtgyGBpkUPSgfsLU9hVgxiIg82lHsWnjQ13 X-Received: by 2002:a2e:851a:0:b0:2d3:1043:749a with SMTP id j26-20020a2e851a000000b002d31043749amr737349lji.21.1712193106593; Wed, 03 Apr 2024 18:11:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712193106; cv=pass; d=google.com; s=arc-20160816; b=pHvvTikE6E6LL6oNeLLcnHdC62NXrSOGDyoGgb7ZcWWMZoJ33MF8Iz0vB/2imPXxw5 h3WNio5bRhE1AcwJwiNpK8jSU8X1HQVpxDv52E1LsogSH1HsJkNwJ02K+T1R2aDuFLsC 3kaAiCDJ0TimKOdner4NyrWpzHNBJwbUqAHpSfxcbkTnMlXfFEd5RteAAD1SMS/UTSwE sBsHvLUvr5qitq2JKlmg4EZaRxShErisBLc+3aWcYYImC3YC4zh4olu6PuFAss3Nh04Z tPZSBI/flHqAJWyPvZDj3lIYKm5YWYLjLvhdJA4omHw7McjWIzgatNLG1UkWa/396qrt 3fzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SIxkfXklEqwxS31xdxUcAue9wbHPCTlsDoqt5Qge+no=; fh=b5ipbpoLuDrNXBiLidZKoH31I1sDzbcOKxpI1vRty58=; b=vJICG/sIrCOc+xH/dk9+hVkw9PO8ir5PjP2gpcuuDwSD1m2ukaoowlUTEGOMY0knKK NLNg8Ft0JZqMhd8GkmaMza7XE+OJH8JfnrfebRmCHBOLiW9wKStnAK/F50DAhY9h+DX3 Gdk7BlmOys/WBIq7xEmFvvCo/7q032QCFbXVW7zjXWw+cXWeidUdOnqUdaoWKiILro0S p9T6PgO49Zl0f+KxWGyVeTMc/9xALVlShAVHKxIckscIlUSsgpMuFbOpD1pF0uuEDoCl Nf6gN9ehRWB3C04c0xPedOYIEN6b4lQi4lVH30R4R5hnfYYF2P7uf8oWWv1eR/8Vn+cg EC+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=uENpXcX8; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-130808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130808-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f5-20020a50d545000000b0056c4be743c3si7174354edj.44.2024.04.03.18.11.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 18:11:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=uENpXcX8; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-130808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130808-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4E5F61F255B6 for ; Thu, 4 Apr 2024 01:11:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A2E2C15B; Thu, 4 Apr 2024 01:11:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="uENpXcX8" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 035CC28F5; Thu, 4 Apr 2024 01:11:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712193094; cv=none; b=d1DSykoa/fgK268yaUFlyxZlbW5qR8pf2p98rMpTUwslw8rDHlaLvu9tjTV4o7ma/vyUqRnUyoGQsFjkfkjI6vqCgBR1/US0COPO1hVQi1f/pyhpbKm1ew9jmDvFHO1dA5b//wK47sGE1AU+UMJYbBFMCHmcOoc5i1ojzrmmfeQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712193094; c=relaxed/simple; bh=J7A8PN5wuZBV1TfL2Rk8R9fDGmF9fMdEqF4s6QCA04A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=s7r/R64WIoEScQxtFEgNdJ/awn8CCDHil4DktnNMLVeKL8lA8E+g44r/EwoR7KJmztPE6/ejVikjmfRgb64Y9wJBLMwHmhw8DfUj8jTrsy/PHZ5dySUbASbblhmVav65NmdhLF46L3JTBtBBqDewiwDkWPL4aFAvDMJPGMX/8r8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=uENpXcX8; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 76EF5497; Thu, 4 Apr 2024 03:10:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1712193053; bh=J7A8PN5wuZBV1TfL2Rk8R9fDGmF9fMdEqF4s6QCA04A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uENpXcX8VK2/0Uzr7fzR2mGdN6GLgXQUAEStarPMihUYWr4Mh5u3aWx1SrAkzAkJW MYkTkIGdBh8UtzD1NWHinftKMnvNg4Lz39JzJPkc5akpUQ9WgD2ojSbIZwmaYGPA+Y bgTGBZZsJTVzQR92fLQU+tdHrDj+IJzmMXJVXxV4= Date: Thu, 4 Apr 2024 04:11:20 +0300 From: Laurent Pinchart To: Oleksandr Natalenko Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Ricardo Ribalda , Mauro Carvalho Chehab , "hn.chen" , Hans Verkuil , Sergey Senozhatsky Subject: Re: [PATCH] media/uvcvideo: add quirk for invalid dev_sof in Logitech C920 Message-ID: <20240404011120.GH23803@pendragon.ideasonboard.com> References: <20240325142611.15550-1-oleksandr@natalenko.name> <6046664.lOV4Wx5bFT@natalenko.name> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6046664.lOV4Wx5bFT@natalenko.name> Hi Oleksandr, On Mon, Apr 01, 2024 at 06:45:16PM +0200, Oleksandr Natalenko wrote: > On pondělí 25. března 2024 15:26:11, CEST Oleksandr Natalenko wrote: > > Similarly to Logitech C922, C920 seems to also suffer from a firmware > > bug that breaks hardware timestamping. > > > > Add a quirk for this camera model too. > > > > Before applying the quirk: > > > > ``` > > 100 (4) [-] none 100 200717 B 212.919114 213.079004 33.727 fps ts mono/SoE > > 101 (5) [-] none 101 200889 B 213.003703 213.114996 11.822 fps ts mono/SoE > > 102 (6) [-] none 102 200926 B 213.035571 213.146999 31.379 fps ts mono/SoE > > 103 (7) [-] none 103 200839 B 213.067424 213.179003 31.394 fps ts mono/SoE > > 104 (0) [-] none 104 200692 B 213.293180 213.214991 4.430 fps ts mono/SoE > > 105 (1) [-] none 105 200937 B 213.322374 213.247001 34.254 fps ts mono/SoE > > 106 (2) [-] none 106 201013 B 213.352228 213.279005 33.496 fps ts mono/SoE > > … > > ``` > > > > After applying the quirk: > > > > ``` > > 154 (2) [-] none 154 192417 B 42.199823 42.207788 27.779 fps ts mono/SoE > > 155 (3) [-] none 155 192040 B 42.231834 42.239791 31.239 fps ts mono/SoE > > 156 (4) [-] none 156 192213 B 42.263823 42.271822 31.261 fps ts mono/SoE > > 157 (5) [-] none 157 191981 B 42.299824 42.303827 27.777 fps ts mono/SoE > > 158 (6) [-] none 158 191953 B 42.331835 42.339811 31.239 fps ts mono/SoE > > 159 (7) [-] none 159 191904 B 42.363824 42.371813 31.261 fps ts mono/SoE > > 160 (0) [-] none 160 192210 B 42.399834 42.407801 27.770 fps ts mono/SoE > > ``` > > > > Link: https://lore.kernel.org/lkml/5764213.DvuYhMxLoT@natalenko.name/ > > Reviewed-by: Ricardo Ribalda > > Signed-off-by: Oleksandr Natalenko > > --- > > drivers/media/usb/uvc/uvc_driver.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c > > index 723e6d5680c2e..444d7089885ea 100644 > > --- a/drivers/media/usb/uvc/uvc_driver.c > > +++ b/drivers/media/usb/uvc/uvc_driver.c > > @@ -2573,7 +2573,8 @@ static const struct usb_device_id uvc_ids[] = { > > .bInterfaceClass = USB_CLASS_VIDEO, > > .bInterfaceSubClass = 1, > > .bInterfaceProtocol = 0, > > - .driver_info = UVC_INFO_QUIRK(UVC_QUIRK_RESTORE_CTRLS_ON_INIT) }, > > + .driver_info = UVC_INFO_QUIRK(UVC_QUIRK_RESTORE_CTRLS_ON_INIT > > + | UVC_QUIRK_INVALID_DEVICE_SOF) }, > > /* Logitech HD Pro Webcam C922 */ > > { .match_flags = USB_DEVICE_ID_MATCH_DEVICE > > | USB_DEVICE_ID_MATCH_INT_INFO, > > > > Gentle ping on this one. Ricardo, could you include this in the next version of your hw timestamp series ? > Also, should I have added: > > Fixes: 5d0fd3c806b9 ("[media] uvcvideo: Disable hardware timestamps by default") > > ? I don't think that's needed, no. > (it's not that this change re-enables HW timestamping, but > 5d0fd3c806b9 explicitly mentions C920 as affected) -- Regards, Laurent Pinchart