Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp397777lqp; Wed, 22 May 2024 07:50:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXL3oBWQPOhPQx64q26kG7AbHQPEV0kztIYb+opBX6nbg8zypiD63EAJeSS0Pq7745Qt1JovU5KKCngxZEpP0xWIBkloc6CIRzumWHPNA== X-Google-Smtp-Source: AGHT+IHSKriNMupjnTQg8qadKFvwnDWmsD6Qjo7oZhILtxBla7Kpy0qtlGdcep1HxU/9GPEBBGfm X-Received: by 2002:a50:d596:0:b0:572:68d8:dc37 with SMTP id 4fb4d7f45d1cf-57832c40982mr1510522a12.30.1716389445326; Wed, 22 May 2024 07:50:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716389445; cv=pass; d=google.com; s=arc-20160816; b=E0YTOW9CL24dDZJI/zH85kc2zx0BWpt/dydjLw8PmOJuxclZ+uKnN3Db1pJKf/m/oi VkuXKfzpWhA+YNXT5gpBIi/vjs7QoW7ff9JsLIjYH9AVELBRH5dk3OJDGRZrboSzwEeg sOVA6q+l0Xrsk9KpTrcpKSoC+X6Wg69o80UhR1RgvZ0z+1/h2meglOGibR7q8ykWtcux auejizkpglRAnZSzPe5+kyZEQ32nqMGPi2vM9FISz3JsSP6zpw7kMOpg6CREKq2kkvNt u0whZGUQfBG3mpLdYrU1ZJC0KE1C/bs2K3bENE1WGyYWIBxsLFrWdIeDeRKKbwj3pL1/ rnGA== 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=BkUGahQ+csqoJ/y7DpVBvM3FBTSVZ27RGrtv+LubQPs=; fh=2VFVrR22fl/YrePB44D+x444Hq1JEcMeUyfjs0YVSpY=; b=EvKQAMcZI6L1dlaAx62xv9GZdgv7kQQ2yytNmWuhfA5zYRgt6y+hYRSjWMOAvnq9w9 q7gPBT9FouqSIPYyoy3A1t0xfWsk3U0LiPLa9MTWQGOwukTx4p6iIeX4O6F+VsQHs9KO RhuxcLJNmNii24KbDiid4X2dT2dxwgFxYUpc9YKf4x9xbNzyzlszr/uJ5wJ0SXw1OPeH Jq6dtyFK+0nwGs46OVikJfwe1nskNE2nXtmPnMmLJo01o8GrbV0zCOr2qh3Up5UD5HfQ KU3DjtUQKsA9+sq+dE5VB+Su5XvTe64DSE9xnCZYrBui7QJYgxGuM7pl+G7bM7TifDvT FoAA==; 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-186388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186388-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c2d458fsi15144879a12.342.2024.05.22.07.50.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 07:50:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186388-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; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-186388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186388-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 119EA1F228D0 for ; Wed, 22 May 2024 14:50:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08B491EA91; Wed, 22 May 2024 14:50:36 +0000 (UTC) Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by smtp.subspace.kernel.org (Postfix) with SMTP id E7EC6224CF for ; Wed, 22 May 2024 14:50:33 +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=1716389435; cv=none; b=XEUBUZzaoqw02L0BVfQvp55q6e1w6KgyWauVaan3O+FfVpVXA6hD+cJCxZ+nebT2DBWQ6azQzquZqqozHNs/6RhPcO0CkxKQ9oc1f9Et+GIkNENv/K2Ba2DaNBxcrLXcvfJoyKmnq8ZLBoTAjW6JVqhIEOd265VuWCqaiwMDE8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716389435; c=relaxed/simple; bh=4piNjUZg8oisXddgDB5LOyPhZdAPw5encIVgKKhsD/0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ONFfWeoSIAF/qj2LSmXlDxZ5k1GoA2B9+3usZdni7fsAm/n8MRCcfBj2CD920RTXMv8XW3f90EsdI+x6T6Ucxp5Z3BwNqA5VdyTCqukGuhRaU/a4IYRnIzdG+lKteqHSLOud8LYdwXJdAhXYNmXFofLJrBIqrOj1BwtnDGLhMr0= 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 500064 invoked by uid 1000); 22 May 2024 10:50:31 -0400 Date: Wed, 22 May 2024 10:50:31 -0400 From: Alan Stern To: Thinh Nguyen Cc: Michael Grzeschik , Avichal Rakesh , Laurent Pinchart , Daniel Scally , Greg Kroah-Hartman , Jayant Chowdhary , "etalvala@google.com" , Michael Riesch , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 0/3] usb: gadget: uvc: allocate requests based on frame interval length and buffersize Message-ID: <3f404a27-50e8-42c5-a497-b46751154613@rowland.harvard.edu> References: <17192e0f-7f18-49ae-96fc-71054d46f74a@google.com> <20240424022806.uo73nwpeg63vexiv@synopsys.com> <20240517014359.p2s44ypl4bix4odm@synopsys.com> <20240522014132.xlf7azgq2urfff2d@synopsys.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: <20240522014132.xlf7azgq2urfff2d@synopsys.com> On Wed, May 22, 2024 at 01:41:42AM +0000, Thinh Nguyen wrote: > On Wed, May 22, 2024, Michael Grzeschik wrote: > > On Fri, May 17, 2024 at 01:44:05AM +0000, Thinh Nguyen wrote: > > > For isoc endpoint IN, yes. If the host requests for isoc data IN while > > > no TRB is prepared, then the controller will automatically send 0-length > > > packet respond. > > > > Perfect! This will help a lot and will make active queueing of own > > zero-length requests run unnecessary. > > Yes, if we rely on the current start/stop isoc transfer scheme for UVC, > then this will work. You shouldn't rely on this behavior. Other device controllers might not behave this way; they might send no packet at all to the host (causing a USB protocol error) instead of sending a zero-length packet. On the other hand, it may not make any difference. The host's UVC driver most likely won't care about the difference between no packet and a 0-length packet. :-) Alan Stern