Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3290785pxu; Sun, 29 Nov 2020 22:27:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTpF9oMwgKuIfcGwhGHPV6IYy9lyFbiGXmPumvGlWkHsWKszdSLzfn08MVYcUo+Qmxb+Az X-Received: by 2002:a17:906:5243:: with SMTP id y3mr19463773ejm.273.1606717644138; Sun, 29 Nov 2020 22:27:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1606717644; cv=pass; d=google.com; s=arc-20160816; b=rZ7sHoGt4F/2oby2taqNaPiXC1swOZSCzv+fHkpMYlYMwBqpWCyU2BA2NINm3TG0ay 2EM9idfIf/bXXNeUT1KQ8D0I1X2xY8VaO7RytOleb2InhCMpiH++CE0txcnrGYnQa+oZ OsYs42FbBdedRU/62vl6jFcOq96P5+4/UP4ZiY2XNpPt560m00Q6ot9T5q7616tKE7NT 2/nt58+CyBebcuw8veqDSe83QxhQ/0ifn1VC08nqc7KynL6LMvZoMw1uotCvTp2E18x0 Bg+CJf/Of4SV8pPM/S0/XL0luiqN4s/n3cjJLpT5OYWpVTh+sDTK20jPgOYyl8SjAHDY 1jEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=JKEEApliZUODyI2hPFgUFGHvp4T/8iP1dwSnHa+ir6M=; b=B6yUjKY6dwCaRhw8c42SEX550y9MLdOskskoRTUAtDg/byucTWhJYYbBzdM1VLqQYK b71ZCpXfs13LX5Jx2kbSlMWGUrpIExCVUhLL9I6dQjUtiybvyljEgFfoOvAy4ksTzfMS WTCwPqR3bsLn1qlcQ7Iqo0D1ES3f7OMXmGYd7Op/cmz9RApBHpBocHDEXmTDZnXScvQE kucI2uHGEmvoOyAZO/vgq4FhdBbfkln12MpVTA+1n7wRg0mgrPDwbYafkWW0Um68ZnNZ ULejio/RsDmij3ne1vP7GV6bpSq1n/68GOyKeeGDHq6A6LSiFEZZU8/4ifezLwvwNcGz x2yg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="aBeq16/4"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k20si10259142ejj.381.2020.11.29.22.27.01; Sun, 29 Nov 2020 22:27:24 -0800 (PST) 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; dkim=pass header.i=@nxp.com header.s=selector2 header.b="aBeq16/4"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726017AbgK3GZ3 (ORCPT + 99 others); Mon, 30 Nov 2020 01:25:29 -0500 Received: from mail-db8eur05on2061.outbound.protection.outlook.com ([40.107.20.61]:55945 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725860AbgK3GZ3 (ORCPT ); Mon, 30 Nov 2020 01:25:29 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OapZEhKME2X5mYQmXB9tZ+qpAxL/6wJ69z8FvVqvYFFaN2D1eopBODxVSwDs64xMK2Ae2mvMFKMCKxPVB07SiAn3T6ER4tOlvAMtepExQZxCQjH96oIzE1FxbDfZFGUM/y4f6eA1pmNB8pFr1rR7Q2MpO4iGydoITUD45Qzeq7u7/AbXvfeUjI9oIbw8ez42xyA0rNeIfBe/EJOxVTCDMkY/TbxC9KYLKzeDEV9X8rQI9VKaSMwm/waHTbOxw21duYxAFI4CaLsGUhXkKBHTqVkzkiuCp43NJ8jSR4MOfSwmu8S6Pp9+2TsGPAENSQoR1zgHl29iazjkoAUnOvz+6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JKEEApliZUODyI2hPFgUFGHvp4T/8iP1dwSnHa+ir6M=; b=NE+eP2zJYGDwSLk61rzSBIrUXZcTMfdtbZf7n5vOH6PYA+XiFvJX1uUBBFp+XiNvNXZ5U5PfDLwU8NLN676NfWwZAP98y13cg59AaR2VNlEwx93CWOFUZDb65gGqjghj1BJFXRZwlz4BpWCOGvjujMUXKruROIhSkuqp8KnIiIaRciyLm16TBhpH4HV/U3jqq9u7j0Djn6EGR+w6hGi267CA6q04Iz8mepo5QxdHQ/4FCaWmhRWfqV++4sYmZzQySc3UkHOo40LsIzbcfBWzK/DUkEtzn9Rw4wdZv1FHxn7WAUmBbMXe6YImDb/QaC/7QV+y+iIcmYXb1dH+ifLyRQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JKEEApliZUODyI2hPFgUFGHvp4T/8iP1dwSnHa+ir6M=; b=aBeq16/4JLVEIf47Ch4cvfM1ROq4mXq6Hpv38obKg66Yvo9Oc8iG6xRzSCikjJE2O8P2pq6vx5L5IjPslh2UreFt6+9w+ZceXXJNZ1E8FDnGREmuzOLtbD8RvKxivp7PGLUNM8KaNv+SNdCfNBDOfmuEGgJBC22gQQrxySsEY38= Received: from DBBPR04MB7979.eurprd04.prod.outlook.com (2603:10a6:10:1ec::9) by DB8PR04MB7177.eurprd04.prod.outlook.com (2603:10a6:10:127::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.21; Mon, 30 Nov 2020 06:24:40 +0000 Received: from DBBPR04MB7979.eurprd04.prod.outlook.com ([fe80::c8c:888f:3e0c:8d5c]) by DBBPR04MB7979.eurprd04.prod.outlook.com ([fe80::c8c:888f:3e0c:8d5c%5]) with mapi id 15.20.3611.031; Mon, 30 Nov 2020 06:24:40 +0000 From: Peter Chen To: Greg Kroah-Hartman CC: "balbi@kernel.org" , "willmcvicker@google.com" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , EJ Hsu , stable Subject: Re: [PATCH v2 1/5] USB: gadget: f_rndis: fix bitrate for SuperSpeed and above Thread-Topic: [PATCH v2 1/5] USB: gadget: f_rndis: fix bitrate for SuperSpeed and above Thread-Index: AQHWxMZ2FbkfIsj42EaFiLZGH/Pe/angOUeA Date: Mon, 30 Nov 2020 06:24:40 +0000 Message-ID: <20201130062411.GB32154@b29397-desktop> References: <20201127140559.381351-1-gregkh@linuxfoundation.org> <20201127140559.381351-2-gregkh@linuxfoundation.org> In-Reply-To: <20201127140559.381351-2-gregkh@linuxfoundation.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mutt/1.9.4 (2018-02-28) authentication-results: linuxfoundation.org; dkim=none (message not signed) header.d=none;linuxfoundation.org; dmarc=none action=none header.from=nxp.com; x-originating-ip: [119.31.174.67] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: aaf6b7ff-761a-49d5-c889-08d894f89e9e x-ms-traffictypediagnostic: DB8PR04MB7177: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:556; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZapMmQ9Q+zrKpf9xYQgBOJhle1QJESth9lJkYGGpbKiGlSR9lvUGQPiGfoXRKQGC4njzuNyoENoXulXdJqEQcVn8u3WFCtkGlkPY8+nY9ULsUTrI7iEYUemZYcCg0oIp8hWxADeGUHZOLrinon2innQjyJAb9OVjFo0a+5pMJfCcyUaVYvs2xPKAi3XjcJFsPB/co3iQn1QRpzwmMPXxTfHeFyvekhaY2Z50TRyEB9g8EQphbhPem+W8pelLVzreTM9/2/pNtqITMDlNKtlany+WRWJlk+kxgLKrVT8CQr6rgVVuSICAoiU7I04B9Z+i3CFYAsfDLWTbHXi9Re+6rg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DBBPR04MB7979.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(7916004)(366004)(396003)(376002)(136003)(346002)(39860400002)(1076003)(86362001)(4326008)(33656002)(6916009)(316002)(6486002)(54906003)(6506007)(66446008)(66946007)(66476007)(76116006)(66556008)(91956017)(478600001)(8676002)(44832011)(5660300002)(33716001)(83380400001)(9686003)(6512007)(8936002)(71200400001)(2906002)(26005)(186003)(64756008)(53546011);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?hvkOlt8c/3WRk3VD7EPcb8BO1VLHCXPBPrSBDgZR4/yh/aqYD+mA0rmY7zN6?= =?us-ascii?Q?Rjgtnfc5XpjVku8PQTiHXOCw4in3QtRyCyqSN3OXBal+FK9ViRtCpW/jBBPo?= =?us-ascii?Q?CDhQvKoR94d8UZhS9EL+uNO4qftk57yTvELs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e?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <7A93E39BFC70454E8B3A1866F5497B56@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DBBPR04MB7979.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: aaf6b7ff-761a-49d5-c889-08d894f89e9e X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2020 06:24:40.5736 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: A6L8K2ekdRQcI6u0hgjx4Y4QMKCSMlZ+0ptXRMyLB/aDaV15wRjn2g9LWfd/iPG2M0ZLdKPVOZrgodqe1h1Jpg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7177 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20-11-27 15:05:55, Greg Kroah-Hartman wrote: > From: Will McVicker >=20 > Align the SuperSpeed Plus bitrate for f_rndis to match f_ncm's ncm_bitrat= e > defined by commit 1650113888fe ("usb: gadget: f_ncm: add SuperSpeed descr= iptors > for CDC NCM"). >=20 > Cc: Felipe Balbi > Cc: EJ Hsu > Cc: Peter Chen > Cc: stable > Signed-off-by: Will McVicker > Signed-off-by: Greg Kroah-Hartman > --- > drivers/usb/gadget/function/f_rndis.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/usb/gadget/function/f_rndis.c b/drivers/usb/gadget/f= unction/f_rndis.c > index 9534c8ab62a8..0739b05a0ef7 100644 > --- a/drivers/usb/gadget/function/f_rndis.c > +++ b/drivers/usb/gadget/function/f_rndis.c > @@ -87,8 +87,10 @@ static inline struct f_rndis *func_to_rndis(struct usb= _function *f) > /* peak (theoretical) bulk transfer rate in bits-per-second */ > static unsigned int bitrate(struct usb_gadget *g) > { > + if (gadget_is_superspeed(g) && g->speed >=3D USB_SPEED_SUPER_PLUS) > + return 4250000000U; Is tested value or spec defined value? > if (gadget_is_superspeed(g) && g->speed =3D=3D USB_SPEED_SUPER) > - return 13 * 1024 * 8 * 1000 * 8; > + return 3750000000U; 13 * 1024 * 8 * 1000 * 8 =3D 851,968,000, how 3750000000U is calculated? > else if (gadget_is_dualspeed(g) && g->speed =3D=3D USB_SPEED_HIGH) > return 13 * 512 * 8 * 1000 * 8; > else > --=20 > 2.29.2 >=20 --=20 Thanks, Peter Chen=