Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5611169pxb; Mon, 14 Feb 2022 03:25:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpWkmGXqcLhepVqkJjmJ0nF/8cGMezVDu0mSpfJMETCApV3gH/LjdnYwfom8ofK/x2r0Cw X-Received: by 2002:a17:90a:43a6:: with SMTP id r35mr13971193pjg.93.1644837936826; Mon, 14 Feb 2022 03:25:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644837936; cv=none; d=google.com; s=arc-20160816; b=ar2d20W7V+Ci2zJDQ/1re9KYgfKaeX1DMRIB7pfGpDbILUom+gDGf6s6gcEqvpwLc7 AjOp9UhQcHQOVDZOP35HsRU7P/UwhUSNfh7eqB0w4YgH9ZgdnNBh75duaG6tujlvj47x huSZ8l9kdboPacFo1z9IzOccsomQnEJwBhj80Mp9ThGUnLar96y6EopPwWlFRxVUGAAv K/Egnxd5QOCCSzj+y9++VGKaJflNwyNMY1CXkIMhO+SEFB02d5LmllcSN+Rk4WMjV5BQ o586oXpkNvRWVUUwnQN3/NMdu03h4TMgwXNr8wLugdOYeb7qaPcd2tFKwLzQkPNO3qGp DjgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nu7gxq/UI1wLP1tTFZrhN/3b42fRzPY/02tK3AyY/h4=; b=qD50K0Bp7eYuJbYM2+a8qzHAn20G7hY/vdg2bsiWvRQjPH4DQ9lPi3YHpu7jlrRokq 89WK1+/MxYZkewP88Zgv96W6mUmGi8nzWjKWiwVqmehnIqOzxxcpejbi2YqoqlG1IIJR wNWHT6w68FbURSwXjksK9B3pTvkp4XThEjCsJ5aXoOxswig5zAoeuO0BadlKwLb6tY3m 5FZhAGdSDkawHmOHDqK2LqLhYx+K01RJrT3Tbvrn2JmK0gXGfz6BMikPc4sPb/5URcmL FhP2Azzmz43PSXkqHRSOKTuRwimeIqLob1Xk5agFm7A6mNeU+3X0bCbn3ESkhhi7f22L AdqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YuB5XVFm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1si11134680pjo.44.2022.02.14.03.25.23; Mon, 14 Feb 2022 03:25:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YuB5XVFm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350105AbiBNLHt (ORCPT + 99 others); Mon, 14 Feb 2022 06:07:49 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350356AbiBNLHl (ORCPT ); Mon, 14 Feb 2022 06:07:41 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACD9E3D481; Mon, 14 Feb 2022 02:37:02 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 43F38B80D8E; Mon, 14 Feb 2022 10:37:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D56EC340E9; Mon, 14 Feb 2022 10:36:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644835019; bh=j3IzS5aFUIef788Ea81CK91huIk0KlHPxkOZBNdtt2U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YuB5XVFmIXpxEQvGSIcbdMIVQ6ExH6BG34hz1SLfOeUXZKhlx1qXEqYUnLpgb4Pfl ozkPEsuUbhJMjN0mEnop4OgBoXT4su9F5bO+1UQvTiBh6LUexwfk6+2uEjbHqK93cM xQBc9iz1DATebjxTAu/7WdLxyV5Nl+VDXG0q7aYQ= Date: Mon, 14 Feb 2022 11:36:56 +0100 From: Greg KH To: 3090101217@zju.edu.cn Cc: balbi@kernel.org, ruslan.bilovol@gmail.com, pavel.hofman@ivitera.com, jbrunet@baylibre.com, jackp@codeaurora.org, colin.king@intel.com, pawell@cadence.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Jing Leng Subject: Re: [PATCH] usb: gadget: f_uac2: fix superspeed transfer Message-ID: References: <20220214032606.17227-1-3090101217@zju.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220214032606.17227-1-3090101217@zju.edu.cn> X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 14, 2022 at 11:26:06AM +0800, 3090101217@zju.edu.cn wrote: > From: Jing Leng > > ss_ep_int_desc endpoint doesn't have 'SuperSpeed Endpoint > Companion Descriptor', so we should add it. This is not a "fix" but rather a new feature. Why does this endpoint need this descriptor? We need a lot more description here please. > > Signed-off-by: Jing Leng > --- > drivers/usb/gadget/function/f_uac2.c | 19 +++++++++++++++++-- > 1 file changed, 17 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/gadget/function/f_uac2.c b/drivers/usb/gadget/function/f_uac2.c > index 097a709549d6..a6fc492f9148 100644 > --- a/drivers/usb/gadget/function/f_uac2.c > +++ b/drivers/usb/gadget/function/f_uac2.c > @@ -282,6 +282,14 @@ static struct usb_endpoint_descriptor ss_ep_int_desc = { > .bInterval = 4, > }; > > +static struct usb_ss_ep_comp_descriptor ss_ep_int_desc_comp = { > + .bLength = sizeof(ss_ep_int_desc_comp), > + .bDescriptorType = USB_DT_SS_ENDPOINT_COMP, > + .bMaxBurst = 0, > + .bmAttributes = 0, 0 is the default value if it is not defined. thanks, greg k-h