Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1286223pxu; Fri, 27 Nov 2020 04:12:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9l21wfL3lBpMlXoc5JWvZm2AE8q6MJjvCAdUgMf+Vj48ympRHJuumyJUo18wAYnC0sJqI X-Received: by 2002:a17:906:5396:: with SMTP id g22mr5630547ejo.111.1606479132917; Fri, 27 Nov 2020 04:12:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1606479132; cv=pass; d=google.com; s=arc-20160816; b=zQxAyKoI/hFCW7g5Aa7P5/ClbZFP73c8GZX2muzoUKemcLaIcoTdIXAHjZYSJV6Tzv qG86vEAdWQl5Q/zHW+aHBGNUZvxgNc934Z3gprrJ4PX1yuL0gevxcZOJrzwTLEdQQ7oA 7twcxSKrlEpDBtMPA+87tlYsb/tKwXBVyXzMvnAvE53UHheY+5VgXX/hlpQvDx7kfkjz nAwv5TQz3WXL58y10iCF11YrUNnj3SuxT5X1lZNkIuhtSA6gdUozNEedejcryGh3bgHM JdB9QFxKfo/Y89+cEBLzbHEJ/OW8ASoe3SifwklzF939BKs6vZOcl9hJI8pYYrm9337Q yPjQ== 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=jLg5Q/RD8HECRbge5FVr/x0Jh83z6x4hU0PymZ7ZCbY=; b=T14GuI8FYKnY/Na3jhrHAuqxphiuphsfZMgK3qLDuzAkRDjeUBDKMVr76ibm/PkC3c xtTaqfsrmclV/NY2WmXTWOtq+p4sJQrxNb4kiI1GD+UTcpIJaGckZIvDc8vXgQNjbt6v udNRFOCDYdRdkXt73e9GNiwADeiI0srabWISmkRnKDxGzDEShiSJD/qKqoie7kIMX2f3 iMmFE/hp71m4e0QioLLPPTuy31sKkSiuk6QUSwUw9MA7b5VzPYEs9mj9/YO8/sHzf9vu 38r7R4NBVWAVYUUiqz5SwT5cRw6siiTDTfXbY51TrixJM3rP/EhyZCaLaWMsWiMiblAM /E0w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=KO3wxMgx; 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 y24si4706133ejw.503.2020.11.27.04.11.48; Fri, 27 Nov 2020 04:12:12 -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=KO3wxMgx; 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 S1726885AbgK0MGy (ORCPT + 99 others); Fri, 27 Nov 2020 07:06:54 -0500 Received: from mail-db8eur05on2085.outbound.protection.outlook.com ([40.107.20.85]:46496 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725985AbgK0MGy (ORCPT ); Fri, 27 Nov 2020 07:06:54 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SDf3SMAHRcJKFOt6M+FCXtPcA3eAHNtNRTr67BldRDuyO+sbqQNMPfOzMqfSel4bUGuQ1tjQN45tjK/WdAsRw2oH1ixuPcyZ+jC9UwtjmlWt7PrOQSmMlpwG1Bv2GEf6Io5/6KFZpFczEVHDsuql25FTlXIshQ0BTTymV+SEo7xLc+bHfLRra78vFDADed/+gT51q+ii/3+tkp54wUE/z4qbXGnMn2wSw5BH7e0v9EuFPoqSU21pCVdK5j9XWc7xDB//RDKjxlGiydE9uxMy1acK2HPLxkdRjCDWoSyRMZMM6ieMdTQ7cwGNmrQcaDDkToG2P4VWMHDsYjDERMLjuQ== 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=jLg5Q/RD8HECRbge5FVr/x0Jh83z6x4hU0PymZ7ZCbY=; b=lvGl3WJfrv9S09rvXhxZSMXfkYtfapMsWVx+qWGRqtr525uWqUDqCWNnnMOrdrZI2FWvcre0v/HvZ/7yxXTCulWKLG1BsrEx3FupawnBQqrVZlvb6fklOeSv7eX9FVsJnASbjf0aleQcSF0qMKahp2hQlIqpfCByuF6DrBKWIJKYvW5NBseWhPXWn1mU7uK4K55Glt6AUwV32BrCfBpyGpOutCUC9Q5XBw6QP2DgKJSMfhqFX9nRMDrPpTHkWEK+sFN0TfvuHItHsVsZoblfDCQPx96wR4mXy8ebkJehtV33oSm9IsIeSWJe5fT5kONTAl89c/m9p5xKqDUNy/kYVg== 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=jLg5Q/RD8HECRbge5FVr/x0Jh83z6x4hU0PymZ7ZCbY=; b=KO3wxMgx3NgjLEluMlucx3z9Y7e6iM4o51cZQKbMAJalq+la27gBTyVZ160aHD6y0/zp1d8CgScsaBNy5+l339VlJ0lyaDEn6cIvytsS+tPTpBVr3OwrIX4ZzfoQcA9+K/2RGto8VAtTYXjzMKSZfEU140JjIX0DJzVmtUROY2U= Received: from DBBPR04MB7979.eurprd04.prod.outlook.com (2603:10a6:10:1ec::9) by DB8PR04MB7179.eurprd04.prod.outlook.com (2603:10a6:10:124::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.22; Fri, 27 Nov 2020 12:06:50 +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.025; Fri, 27 Nov 2020 12:06:50 +0000 From: Peter Chen To: Greg Kroah-Hartman CC: "balbi@kernel.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Will McVicker , stable Subject: Re: [PATCH 4/4] USB: gadget: f_midi: setup SuperSpeed Plus descriptors Thread-Topic: [PATCH 4/4] USB: gadget: f_midi: setup SuperSpeed Plus descriptors Thread-Index: AQHWxB9kjqaqi8p2XkafJ7Illnrgjanb4zGA Date: Fri, 27 Nov 2020 12:06:50 +0000 Message-ID: <20201127120621.GD22238@b29397-desktop> References: <20201126180937.255892-1-gregkh@linuxfoundation.org> <20201126180937.255892-4-gregkh@linuxfoundation.org> In-Reply-To: <20201126180937.255892-4-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: 5430de21-dc72-4acc-d0f1-08d892ccec5a x-ms-traffictypediagnostic: DB8PR04MB7179: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jJH72sy6pzAZmp9wJRTvo6khlpk9XNxLp+vv8g/mQ8mKZDl2LrHGZ1QlMCufYi/eodubOx/ztqsGbNLaECLelYKHkxaqtfDm/lwYLBxGfWGFE931QDqe2Bhf5HpukXJv91o505TuyLQZ+7SijZjuwkwqPbQcWAfUNAg3AcIhi6KaM0PaAyVgV3dmvvEd9DZOIS8GucdsWTXAD+qeFTwINod5nIvv7m6iFYLTzDTOlJVEZUmU8cCSuVG9VFw+LIbrLVVPQtjAdCetEPP6Bv0vVtBItyHEaiyNJHBnzwDcC4kfTh+pLmgluazkHdOFLVN0z6RLLyL0GHKNqd3THYYJpA== 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:(7916004)(4636009)(366004)(396003)(136003)(376002)(39860400002)(346002)(91956017)(54906003)(4326008)(86362001)(316002)(9686003)(6512007)(5660300002)(2906002)(8936002)(26005)(8676002)(66476007)(6486002)(186003)(71200400001)(1076003)(6506007)(33716001)(33656002)(76116006)(44832011)(478600001)(66446008)(66946007)(64756008)(66556008)(6916009)(53546011);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?c+s8Z5acqXdIx4RIjczGqlckQCAcBGWozVvUiZzK732hO3uH2nkeSN5/tNFi?= =?us-ascii?Q?o1p5HEAD5vIPtpThSgkGmWADZk5wbJtMyaDz+w4B5esGUmil3+uYQZSCrV14?= =?us-ascii?Q?hZQMZst5Q/mBZdl6CyBuTNfhJk1ZhNoDu3k4Es2okFBoZSVlguUYkRlQnkzx?= =?us-ascii?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Content-Type: text/plain; charset="us-ascii" Content-ID: <433BF40DE4B49F4881522FE4D01E8F02@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: 5430de21-dc72-4acc-d0f1-08d892ccec5a X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Nov 2020 12:06:50.8576 (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: U8btwrphde97GHepeUJPBhIoBA+jLdV/z4yqIUa/eLXU+UfOmUWIUnKIK/cGCtVMiXAQcoUTrshdZHTyh8FxFw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7179 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20-11-26 19:09:37, Greg Kroah-Hartman wrote: > From: Will McVicker >=20 > Needed for SuperSpeed Plus support for f_midi. This allows the > gadget to work properly without crashing at SuperSpeed rates. >=20 > Cc: Felipe Balbi > Cc: stable > Signed-off-by: Will McVicker > Signed-off-by: Greg Kroah-Hartman > --- > drivers/usb/gadget/function/f_midi.c | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/drivers/usb/gadget/function/f_midi.c b/drivers/usb/gadget/fu= nction/f_midi.c > index 85cb15734aa8..ceb67651de4f 100644 > --- a/drivers/usb/gadget/function/f_midi.c > +++ b/drivers/usb/gadget/function/f_midi.c > @@ -1048,6 +1048,11 @@ static int f_midi_bind(struct usb_configuration *c= , struct usb_function *f) > f->ss_descriptors =3D usb_copy_descriptors(midi_function); > if (!f->ss_descriptors) > goto fail_f_midi; Add one blank line, otherwise: Reviewed-by: Peter Chen Peter > + if (gadget_is_superspeed_plus(c->cdev->gadget)) { > + f->ssp_descriptors =3D usb_copy_descriptors(midi_function); > + if (!f->ssp_descriptors) > + goto fail_f_midi; > + } > } > =20 > kfree(midi_function); > --=20 > 2.29.2 >=20 --=20 Thanks, Peter Chen=