Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1177270lqp; Fri, 22 Mar 2024 07:41:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtQl4jwUk/qx0f2wdLRPoD8xOutBHNLtAyHZRjBUx3+4RRBvUnUJfdpz2MHWw4nvkILjp2hS+UQV/5I/UAY+HZlopjlcMMifrE6P4b8g== X-Google-Smtp-Source: AGHT+IEeG2ambFYBR2o6jDRRZZpfuVQUDkT6pDMSsZaFPxfZKa/+virHlvPKAdVzm4ZmPEu53B4z X-Received: by 2002:a9d:6a81:0:b0:6e6:8707:ad1c with SMTP id l1-20020a9d6a81000000b006e68707ad1cmr2544562otq.31.1711118464070; Fri, 22 Mar 2024 07:41:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711118464; cv=pass; d=google.com; s=arc-20160816; b=CkAiT+Sam62vLLUJyI6Bv+wxnzgobFHH1WjxCK8+ufeO5E0exw2uxTbrVSIkPK8tyr U2G/eEnU+RfydF/sZFkEcbGyocuihWWyRY47dHzdTFXD1NhTTIYwx3B9p2YBjR95Q1bG 68nUeaCCZDFK3fJkwgbFLi8hbxJrkycYXAejG8657XAC+Xxzju8d/Ga16xOBemi7FKEa /P+8iU+o1elY3A7YdPl9d6Y1031v9HaJ6pUD8COe6r/cxMIggOJbJ34sT9lqmDpdOFjP HVSQZAjKCBXCyJon8PPpmwoPGCeL0BBmMYvBWrBpN21O7sSKDYFo5BlplEqNDExFVufn 0ZbQ== 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; bh=hY4L6S284utAFMy+F+R/tbP3K55tBJMsiuWs53RDCzg=; fh=bvL2Zt09OEA7zJxwwJBFJnsWMRtf3PbihqoxS+Rp91U=; b=e8vZpgjeLyzYZ/yDl91P6v7B1/G87Iwbin32QuyVIewqLtwNl8CVBt/CRjIajYruV9 LwogYGcjQkyL20wdC9YO8dxAf/l6zNdNDen8rdvQLK08D5hJPkAUSx4mLKfyxqxaQwmi upo3eQeR2YmQmK62NMgznqmzNt3EkZWYZva5OpHkw68KGq6ZAEbJIGWGZXfanQY+FQm7 rtr7Hw6qwMLYT9xcxoMagk+Or4hxhllvg8Xy5EGgDTWkq9o5Fv1y4lV5q2ICBFA4FFvx N75w6SRwl7r5+9y9L3tE2mnOctHeqaaoUSBNLkyUBTeE5jpVcIWgIuDu3QgY4AUYWGao 3cvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-111634-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111634-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m15-20020a05620a24cf00b007881632e22esi2307996qkn.627.2024.03.22.07.41.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 07:41:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111634-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-111634-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111634-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BFF8C1C225DA for ; Fri, 22 Mar 2024 14:41:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FB73487BE; Fri, 22 Mar 2024 14:40:50 +0000 (UTC) Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by smtp.subspace.kernel.org (Postfix) with SMTP id 84A204644C for ; Fri, 22 Mar 2024 14:40:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.131.102.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711118449; cv=none; b=b1/JT7G7UB1ZLNUWqTdeCzmV+qa7pfdvbmVtYJSz3KtPDg4WR+HBUVBBO1GssfvTLVQFfjVVZFeV03UoCRkmMjB5wMuRx1LTJssYeBj+ZUK1BSm7C8K2OsmraR4/ghGrbsvjdmCeHHYXaZ/oRtfA7954RiTkOhwsrVnFKSkvC88= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711118449; c=relaxed/simple; bh=VmvTwIK00BUsWSa6IRrE06C6cD4KWMsHDZSl8m19mcU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sVOY8Aib6vBxdAE4GgT8x6k6ZH+wlj4VgdArpFpQE0nINPUQcIK/wD0WpKOUbNefW7StXwJnkwkUqL7bB41Je9MkN0qk4it6zPpWKkcHFpbCVanroNvgslectPX7BoCJRmwMB4m5DWGzUnjhe7hLJYoyQPH191zOsVkCHI1LmBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu; spf=pass smtp.mailfrom=netrider.rowland.org; arc=none smtp.client-ip=192.131.102.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netrider.rowland.org Received: (qmail 761098 invoked by uid 1000); 22 Mar 2024 10:40:46 -0400 Date: Fri, 22 Mar 2024 10:40:46 -0400 From: Alan Stern To: Laurent Pinchart Cc: Ricardo Ribalda , Oliver Neukum , 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: <588d2e1f-1cb5-4868-9160-11a36e8640d6@rowland.harvard.edu> 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> <20240322115734.GB31979@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=us-ascii Content-Disposition: inline In-Reply-To: <20240322115734.GB31979@pendragon.ideasonboard.com> On Fri, Mar 22, 2024 at 01:57:34PM +0200, Laurent Pinchart wrote: > 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. Thirded :-) I want to hear what Oliver thinks about the original patch. Alan Stern > > 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