Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1071740lqp; Fri, 22 Mar 2024 05:02:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2ZP1g/zto+E080IN4HRZJfkP4LaPA5SX9pbnHIJVthhvF6ryDZEp2aOzysYy+88MyE1/ci+0WcLlBW4TUwUgYr1wr11bz5kkIuEI0og== X-Google-Smtp-Source: AGHT+IEKRAA9sqlZBdk4CUcnIuiSYuopwMW7ZLBtAyjY1rAzAwWha5PjMObgVQ7VBxsQsaBTI499 X-Received: by 2002:a05:6a00:99e:b0:6e7:4abe:85a0 with SMTP id u30-20020a056a00099e00b006e74abe85a0mr2748700pfg.14.1711108941307; Fri, 22 Mar 2024 05:02:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711108941; cv=pass; d=google.com; s=arc-20160816; b=HdR5b9s1gg4cKPMB/hYhVpbXaRtXEB3PZeOlO6Fj5xI2iWjcMmy2uQ1o4pAgEJWobM EbYSwALxg6pyY8aU4T4CzPJX0aWzwdJu29cdGzB0xcPRc3S/y433KMGj+gjLD1kHAHiO eEeX2Cm4F0mfddgtqJUmSCvZwWPh5Jk18AIFxlXiceC0DTwx1E9XZhuNiSy4V8s2xBX5 42zB6UadjToZOSxlqgGGfARIPk2CtH5SJQGzus4kJCTlQj8V/O8uWUmMusE3HB290x5r e2Ikob9B/MOOPlHnOWrc98A7+D4RLX/fa7fZptkJCCpYQQuwm7gkKCgHIsw0PsBP54Iq 8kHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LBnaTli1hZhfL4riSt8nDJonvicSgpwO+ltad5pVxUc=; fh=06EBn9ntcn5yQ9hP1pQdrfOiZOIdIUU7wVxuHqZCA34=; b=RkqAr4YH6eaP/qhoD3nFbq742T085jaltJbsamJbrixLn+iQiwNFW+DEttB+2H23bG spAiB3Kb5oBp61om7Yw4KtoUtn6H82I29TCL3PHW2IEUeWBHml/rsYRKKpFw/I9bEoJy boAAk5qp2cKtessdAvMBolL/xLAaFi8ZCCKFLprbdnKpXBeuPYvwwMcmIrhNoGF4gLSx PM7nUotYcdwNlBR55RfDH1OXECPWMqnj5+5ZvlVwUw1VSHfPZEudqCGQv/KJ+0HCrSyW XOD/w81re8Teq4pE7lfB1O4KVbxg1gG6VgBTQcDi0pg8RvwUGBdrlnh2HA+GopmZUuzK 1Ijw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=wH6eNOa+; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-111390-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111390-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j34-20020a63fc22000000b005e8d66158eesi1794523pgi.276.2024.03.22.05.02.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 05:02:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111390-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=wH6eNOa+; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-111390-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111390-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3822BB2399B for ; Fri, 22 Mar 2024 11:58:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34393405FB; Fri, 22 Mar 2024 11:57:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="wH6eNOa+" 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 B67C93F8F7; Fri, 22 Mar 2024 11:57:39 +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=1711108661; cv=none; b=RnhG8StasZvPPWaUAdak368p2WlM5rBrQNLYrE06nuWt9GOwu0GJtdeB8N7W2xNph9Eczov4AOsxYmmy1qzbjgtYNY8Ju0gcM9SKisovsfbiEjC4gJxi0uTiRBmscKVlKUQPh185bNSWZpuhMhP/WYedF178jWYEpiMGyB+zIhg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711108661; c=relaxed/simple; bh=4fLslFzxOvf0s9odzqysPxgn/WllfqCRi1EcNhOBrms=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GMucqFUUlVDBwwHW8aASbI1Gw5gYZzcX88Pqp90PdmVw2o1UezO/xDIBOkcHmIr56ucT6yOBeA3rGvcnc3TXPVXF1dIVces4ZFxEHqulObccf7rsRH8LGNhc8InRPGWGpbQ4W0NYof4jE2fqIPBVhTe01X1I+8vKRz+rBFLqFjE= 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=wH6eNOa+; 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 2CA45842; Fri, 22 Mar 2024 12:57:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1711108629; bh=4fLslFzxOvf0s9odzqysPxgn/WllfqCRi1EcNhOBrms=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wH6eNOa+I4DHBwEdojUrqDk3Q+u0sJxJPiKlNCJQBQ1tBIiDtqCuXIjhx+A5RxLBy f0xOof1HkCVTDPiYBlrumRHtixPW3EyxxRKIcbqr6dSrXeBJ+z9fHMI1HAL0DdJ0pQ kjRjiP+00oU1jfvzrGAxwdUtS5pPDPQkRUzy/4tU= Date: Fri, 22 Mar 2024 13:57:34 +0200 From: Laurent Pinchart To: Ricardo Ribalda Cc: Oliver Neukum , Alan Stern , Greg Kroah-Hartman , Mauro Carvalho Chehab , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v4] media: ucvideo: Add quirk for Logitech Rally Bar Message-ID: <20240322115734.GB31979@pendragon.ideasonboard.com> References: <20240108-rallybar-v4-1-a7450641e41b@chromium.org> <20240204105227.GB25334@pendragon.ideasonboard.com> <6aade777-d97c-4c65-b542-14ce5b39abb6@rowland.harvard.edu> <20240213104725.GC5012@pendragon.ideasonboard.com> 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 In-Reply-To: On Thu, Feb 29, 2024 at 05:57:38PM +0100, Ricardo Ribalda wrote: > Oliver, friendly ping Seconded :-) We can help with the implementation, but we would like your guidance on the direction you think this should take. > On Mon, 19 Feb 2024 at 16:13, Ricardo Ribalda wrote: > > > > Hi Oliver > > > > Would you prefer a version like this? > > > > https://lore.kernel.org/all/20231222-rallybar-v2-1-5849d62a9514@chromium.org/ > > > > If so I can re-submit a version with the 3 vid/pids. Alan, would you > > be happy with that? > > > > Regards! > > > > On Tue, 13 Feb 2024 at 11:47, Laurent Pinchart wrote: > > > On Mon, Feb 12, 2024 at 02:04:31PM -0500, Alan Stern wrote: > > > > On Mon, Feb 12, 2024 at 01:22:42PM +0100, Oliver Neukum wrote: > > > > > On 04.02.24 11:52, Laurent Pinchart wrote: > > > > > > Hi Ricardo, > > > > > > > > > > > > Thank you for the patch. > > > > > > > > > > Hi, > > > > > > > > > > sorry for commenting on this late, but this patch has > > > > > a fundamental issue. In fact this issue is the reason the > > > > > handling for quirks is in usbcore at all. > > > > > > > > > > If you leave the setting/clearing of this flag to a driver you > > > > > are introducing a race condition. The driver may or may not be > > > > > present at the time a device is enumerated. And you have > > > > > no idea how long the autosuspend delay is on a system > > > > > and what its default policy is regarding suspending > > > > > devices. > > > > > That means that a device can have been suspended and > > > > > resumed before it is probed. On a device that needs > > > > > RESET_RESUME, we are in trouble. > > > > > > > > Not necessarily. If the driver knows that one of these devices may > > > > already have been suspend and resumed, it can issue its own preemptive > > > > reset at probe time. > > > > > > > > > The inverse issue will arise if a device does not react > > > > > well to RESET_RESUME. You cannot rule out that a device > > > > > that must not be reset will be reset. > > > > > > > > That's a separate issue, with its own list of potential problems. > > > > > > > > > I am sorry, but it seems to me that the exceptions need > > > > > to go into usbcore. > > > > > > > > If we do then we may want to come up with a better scheme for seeing > > > > which devices need to have a quirk flag set. A static listing probably > > > > won't be good enough; the decision may have to be made dynamically. > > > > > > I don't mind either way personally. Oliver, could you try to find a good > > > solution with Ricardo ? I'll merge the outcome. -- Regards, Laurent Pinchart