From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0249C433E0 for ; Tue, 16 Jun 2020 14:02:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 998C42071A for ; Tue, 16 Jun 2020 14:02:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729318AbgFPOCt (ORCPT ); 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBE94C433E0 for ; Tue, 16 Jun 2020 14:23:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6B07B20786 for ; Tue, 16 Jun 2020 14:23:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="J/yROUHW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6B07B20786 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=rowland.harvard.edu Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=akN/JWhRAB45KF2bcUMONu1xQ3rjFhli4saZDRFD0PE=; b=J/yROUHWs2J1Ed zRLed5bp1nkDwQedgwk0Ml4qQrD0eWCEpM2tjkEVHNp70cDmrcQGigXaoZj/tqgpMGxI5QP4vnrai SR0REUYTIO1S8IpwyOXr7zMgEw//SWgdGZULGfDPxvuQCWOcmyKV0+sZAf9R9dYUD4AZTnat6ihy7 VgDoFMIlRSgfqE72Pkj2Fp3g7A8U0BdFIRao1eur30zBE1mXiOuH0oXsQD3RaRjfAv3eij+DCtE5j 76nk8NRaoxHsY4HYIBYhGSNmY8Ia+w4Sm2jXRa5MUhKXoZXIVI1x+Rj1BNW410Zq6vxENGXv7QWCb bdudJp1LTOZQonoG5HEw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jlCUM-0004AC-1t; Tue, 16 Jun 2020 14:22:58 +0000 Received: from netrider.rowland.org ([192.131.102.5]) by bombadil.infradead.org with smtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jlCAr-0003zQ-Ti for linux-mediatek@lists.infradead.org; Tue, 16 Jun 2020 14:02:52 +0000 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 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-Disposition: inline In-Reply-To: <1592310884-4307-1-git-send-email-macpaul.lin@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200616_070250_127581_643DECB3 X-CRM114-Status: UNSURE ( 4.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Felipe Balbi , Mediatek WSD Upstream , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Matthias Brugger , Sergey Organov , Chunfeng Yun , linux-mediatek@lists.infradead.org, Macpaul Lin , Fabrice Gasnier , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.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 _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49196C433DF for ; Tue, 16 Jun 2020 14:22:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0771D20786 for ; Tue, 16 Jun 2020 14:22:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="uNxBmILZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0771D20786 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=rowland.harvard.edu Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7GfYUQwxik0hjxtCVxu7GBegacl8AnE9OgPSOAWQ5RM=; b=uNxBmILZo3mnof SY9+hQ9GvnsIZxTbTdtjWLSQo8MPkYdmpFqOtz0oUXBWhpglcmUU+qOGvhZu0mLlCIpkGQmTuMlXT wYIkYlsRDOTpXRyHk+iFTTEAF0f6/kxP2areGwbd30t9rPlhX2inCZGo5ImYCj5gTAg+FCcX/gH6X Kgbd+RtwyHdCkUWm78m0vtnburO9G2FrLL9TXI2vpC41XmGvbqI5Em1fOLNOZ791/gzQ3q3X3MU7F mNv0D/mKiDtpe2bvYGQN9ykgcwu17R6lRTsVjWw3OLTLL4ecagS+xgzzJ7zDfA9Rw/+LbRGeSXiWj aPMSVYQuIZUn7mxTEm5A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jlCU5-0003ui-8F; Tue, 16 Jun 2020 14:22:41 +0000 Received: from netrider.rowland.org ([192.131.102.5]) by bombadil.infradead.org with smtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jlCAr-0003zP-TT for linux-arm-kernel@lists.infradead.org; Tue, 16 Jun 2020 14:02:51 +0000 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 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-Disposition: inline In-Reply-To: <1592310884-4307-1-git-send-email-macpaul.lin@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200616_070250_119312_33D6CB6D X-CRM114-Status: UNSURE ( 5.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Felipe Balbi , Mediatek WSD Upstream , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Matthias Brugger , Sergey Organov , Chunfeng Yun , linux-mediatek@lists.infradead.org, Macpaul Lin , Fabrice Gasnier , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel