Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2473952ybt; Tue, 16 Jun 2020 07:06:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZMf1/Rt+WIhXn01FM7EXGVBhQi+A1/sPvE826Npc4UY2QuEYHGaLncEmS4cvEONqsragl X-Received: by 2002:a17:906:fa92:: with SMTP id lt18mr3106630ejb.423.1592316366249; Tue, 16 Jun 2020 07:06:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592316366; cv=none; d=google.com; s=arc-20160816; b=UOEipji6fTwhM+8GbU4wxatIjCQsSL/nH6K2m3bp2n7ociFpWwJtutFSjYI6VzyFVq WsIhG0Hf6/5cZYRKCN5Z6KfZNuwwzV3Q/PrARY3WBVjd1GR5pTw7y6T3xcxdi4Xt6MMF 1CHQJkeopOAHL70zx8uZ/LAdO2hoS+IGTrSYp/Qy/StGx/G8gUE73Ruc7+bekF6rghfY H/5v7+RDx1NQOu1dzRqyyTDSZbHSJSEwAbSfxNvsGd/yAt24XEuOT45oFLqFEB9blZ49 Ek8jSC888jUYuuvoxd4AsxA5DQJuRzPzdRMI0y7TOhExBdJ+Fn76r1J6tRoE79yx4tpY OxDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YGYe5PvdESYhmDvEwXL23LDbYFKRrSyMRYRIn9NtwJo=; b=dhyH1wrvQRcyw5FyRSyzEttpVqnRpCwGr2X/Ej5mdbsUMXEyn6vtKjLxCqBkfa3BwR ZqCDMFZhAdYXZhy9Fmj4LWxZQ0OhhoqDuvm4Y1Vv6QG1l8kyve+/ysrguT/i7KMO9a0r +Flij68CNt/kIZokpQ51bCuUzc1Fvk0Wv8SP0IMCMh9k7b91eOXr+iUeIN1A6oeerAnX 9POnMPK0VY1Vm23bu06QB+q2yowQXROSv4lJgkJVaHxsvaXdktr6AVK8f+REjstbp9Si QCJjZQtKZpZfA2DzhasYGOxISlX/z0I/KAyJPGiq6X+mchtQDptPaHuz66NBSzbyDxi3 l8kA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o27si9009986edz.331.2020.06.16.07.05.42; Tue, 16 Jun 2020 07:06:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729307AbgFPOCt (ORCPT + 99 others); Tue, 16 Jun 2020 10:02:49 -0400 Received: from netrider.rowland.org ([192.131.102.5]:60875 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1729289AbgFPOCr (ORCPT ); Tue, 16 Jun 2020 10:02:47 -0400 Received: (qmail 31737 invoked by uid 1000); 16 Jun 2020 10:02:46 -0400 Date: Tue, 16 Jun 2020 10:02:46 -0400 From: Alan Stern To: Macpaul Lin Cc: Chunfeng Yun , Greg Kroah-Hartman , Felipe Balbi , Matthias Brugger , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Sergey Organov , Fabrice Gasnier , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Mediatek WSD Upstream , Macpaul Lin Subject: Re: [PATCH 1/2] usb: gadget: introduce flag for large request Message-ID: <20200616140246.GA30975@rowland.harvard.edu> References: <1592310884-4307-1-git-send-email-macpaul.lin@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1592310884-4307-1-git-send-email-macpaul.lin@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 16, 2020 at 08:34:43PM +0800, Macpaul Lin wrote: > Some USB hardware like DMA engine can help to process (split) the data > of each URB request into small packets. For example, the max packet size > of high speed is 512 bytes. These kinds of hardware can help to split > the continue Tx/Rx data requests into packets just at the max packet > size during transmission. Hence upper layer software can reduce some > effort for queueing many requests back and forth for larger data. > > Here we introduce "can_exceed_maxp" flag in gadget when these kinds of > hardware is ready to support these operations. This isn't needed. All UDC drivers must be able to support requests that are larger than the maxpacket size. Alan Stern