Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2672263pxb; Mon, 11 Jan 2021 16:45:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJy50y2E85RlW20o4ZxRbKraw1EBiUG7emD5bkDU8n+PsckBK1Rl84jqBadBMWUYcEU2Le/4 X-Received: by 2002:a17:907:98ec:: with SMTP id ke12mr1310429ejc.554.1610412345942; Mon, 11 Jan 2021 16:45:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610412345; cv=none; d=google.com; s=arc-20160816; b=bjNi/F0pLuEGecrZ7T59gTWCX3BCelVe8xSwgoW9gy/zBQyf4eA+lr8T3lnq+FHA9O n0qbYyNyw+UhQ2w3cwgq5cgMQZn0M4Bzksv/H3auMWoH0s6IXWoa5Ld+RS4D7fl5qrQY c0yQY0ULfUm9Kgbk98mgFDI4gJ8KFtrCEqKwxZ2vx0pllC2wsjztAUEP29PH2J3B+BJ+ HkoHNMQQb5oaQzdvG8mjdeXmIrJ/U2R4vkXsa3AJ+2MeJnD4nPKLQTJSzUtMjoIa0miE VlFdnlhMaYIdXOTWcMg9UcMa2a62l1iEymxBJIQfiKD3JwOQoPwth3/EJezq8JfkZf0C 6eog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QIYxprihfCE2xarZVEdlwX5/I8GeYOdkCW0r7Gba3sw=; b=rMJpdVj8NsG2qbC44CQK52mV82IFE95ewXx2HUDJ89+ubkIDYJ089e98wIGZ6VTl4h 4egBsVNx9I223HdYRpBJhYlEUoMknJFxIu/gSdDcgtJpr/kE5giefJbdPJG8Z/O8NiMY M3mm0t/JXKfI6UbO5guvgZ7MmVsqn0QpI+QlFoDLqea8b1FLtO1uhtMhO3+Tp4UlDZx2 By9/Yy7/FZTby21N6A131za50OCaw/7hMypnVJMcWyuF3uBHuJHK49pCD4YSZsgLuPNz 4H/P3Zd4dC9rq89ey6XJ2Zz4Er36V2sN7v3u54/oM9noNluM2eMKc6r2k1wW1I6LQ1cq lF7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=odSQ5eS6; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si585149edm.477.2021.01.11.16.45.22; Mon, 11 Jan 2021 16:45:45 -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=@linuxfoundation.org header.s=korg header.b=odSQ5eS6; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729113AbhAKNCR (ORCPT + 99 others); Mon, 11 Jan 2021 08:02:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:48794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728077AbhAKNBX (ORCPT ); Mon, 11 Jan 2021 08:01:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 570AD22510; Mon, 11 Jan 2021 13:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610370020; bh=F06FkNZFTnqZxgw/nwOYLrbLIypwVh8ABQmQEKuw5Aw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=odSQ5eS61UtT9XmtQGzInn7/kJzZGZQpKRJ2u9bEV719ecsLLsu4fN6ZH/fejLkC2 1IwdBhIHr1fbbA6GwOwV9FBbmi1nVo5CaydAv/wkIoDTJT608smr5UcT/EQ+5faWQI afah0DBr42dV3/Pct+ZkYGKa8pYAWmiIBMKCW6G0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lorenzo Colitti , Felipe Balbi , "taehyun.cho" Subject: [PATCH 4.4 16/38] usb: gadget: enable super speed plus Date: Mon, 11 Jan 2021 14:00:48 +0100 Message-Id: <20210111130033.252203628@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210111130032.469630231@linuxfoundation.org> References: <20210111130032.469630231@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: taehyun.cho commit e2459108b5a0604c4b472cae2b3cb8d3444c77fb upstream. Enable Super speed plus in configfs to support USB3.1 Gen2. This ensures that when a USB gadget is plugged in, it is enumerated as Gen 2 and connected at 10 Gbps if the host and cable are capable of it. Many in-tree gadget functions (fs, midi, acm, ncm, mass_storage, etc.) already have SuperSpeed Plus support. Tested: plugged gadget into Linux host and saw: [284907.385986] usb 8-2: new SuperSpeedPlus Gen 2 USB device number 3 using xhci_hcd Tested-by: Lorenzo Colitti Acked-by: Felipe Balbi Signed-off-by: taehyun.cho Signed-off-by: Lorenzo Colitti Link: https://lore.kernel.org/r/20210106154625.2801030-1-lorenzo@google.com Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/usb/gadget/configfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/usb/gadget/configfs.c +++ b/drivers/usb/gadget/configfs.c @@ -1507,7 +1507,7 @@ static const struct usb_gadget_driver co .suspend = configfs_composite_suspend, .resume = configfs_composite_resume, - .max_speed = USB_SPEED_SUPER, + .max_speed = USB_SPEED_SUPER_PLUS, .driver = { .owner = THIS_MODULE, .name = "configfs-gadget", @@ -1543,7 +1543,7 @@ static struct config_group *gadgets_make gi->composite.unbind = configfs_do_nothing; gi->composite.suspend = NULL; gi->composite.resume = NULL; - gi->composite.max_speed = USB_SPEED_SUPER; + gi->composite.max_speed = USB_SPEED_SUPER_PLUS; spin_lock_init(&gi->spinlock); mutex_init(&gi->lock);