Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9238458pxu; Mon, 28 Dec 2020 10:07:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzfL6xSe3B89dDQFGtSoXf2cYuRFL8nd1plW0mc663ShfUEmSeXZm+j9KPjmndG3vI3/4dV X-Received: by 2002:a05:6402:895:: with SMTP id e21mr43441030edy.284.1609178864050; Mon, 28 Dec 2020 10:07:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609178864; cv=none; d=google.com; s=arc-20160816; b=VEy8WOY8KPfpM6eKWaVXkGkF6FxJeJUBgaWsraTtxYy2zHFPaT8dz3tUQcO8DOQ7/c x+Qf5gldeIqjo9jG85UDQS6sgBzEDYiG7n1CGXVf7N3QP9rxmn0/54AlMfnBXW4YMUq/ yh3mIR42tCA0IEdMFiBETibKoYZUXOaRcdYlCiH8br6kdtc1L2+oX5kIQv0p+vJw0mI0 zvKbpaeWR9HJI6Z+qvtKXu8ZJn1trNpZ1KJ2pigujk1C47nAOYLzBeeagyqZfoGKI3Mo 8qQKGGGaAAozg6nIgEMy4R+HRvJREOfdnhs7vLZmOpO4raxyLu/skJHNsCkM4xQXOu9i kLcw== 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=9PeEvnjDICdSr3AiChJ7Pcx2EmaNus4j/q8cVLNYkcU=; b=KycMA7iuaYMYKAGAj9jtXVbwjhZw19GHzU8FaGMWhgxlVUaXTgIGkOm1RYv0bmYPGL dhKXA658C0+WffbZXAcBnhK5RT7ZPFPxOP5AKy6fNw0sfqmFEzhPBTRcnDxGlitB6Vxa OjWl+myMptLI0Ji8s2WeuqhLTI1drESjMIxDbuZCDuou/QqjXdObsAK81r/pi7FCPoD0 kYdGPyELM5j34hUXqTYw9adPdaeYz2hdT/mY0z2SPj4uN5cut1zTV7dyA0KUfD1N2RCh eZZRsVUcTIaajP3yhv45XD8um2iwhMW9GZvFgFnRcA0Y79D1fvUULRkl3GAN3ewnW6S7 IbYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xzYA4wUv; 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 x91si21095857ede.370.2020.12.28.10.07.22; Mon, 28 Dec 2020 10:07:44 -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=xzYA4wUv; 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 S2388554AbgL1NXn (ORCPT + 99 others); Mon, 28 Dec 2020 08:23:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:52282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388546AbgL1NXm (ORCPT ); Mon, 28 Dec 2020 08:23:42 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id DE73120719; Mon, 28 Dec 2020 13:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161781; bh=sV9cifRcauNGZ0LjAcCcdK89ZPt8u2a8dtWMPcGAeOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xzYA4wUvSGkDwHn6TG6TfcyknLFQpUe3IhAI8OzguoMTgMYkJNVwIpPsZD0jXYa7+ M2FSON+9AACGzD5sfWo4m8cBGbN1hgJph2zRxdE2ig/JTvuV7fWc0EZHdPd5fr24r+ AvCdl50cVI/oPgqWDh7sH1MgtGgHdAMdOzfy+8pU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Felipe Balbi , "taehyun.cho" , Will McVicker , Peter Chen Subject: [PATCH 4.19 079/346] USB: gadget: f_acm: add support for SuperSpeed Plus Date: Mon, 28 Dec 2020 13:46:38 +0100 Message-Id: <20201228124923.618767109@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124919.745526410@linuxfoundation.org> References: <20201228124919.745526410@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 3ee05c20656782387aa9eb010fdb9bb16982ac3f upstream. Setup the SuperSpeed Plus descriptors for f_acm. This allows the gadget to work properly without crashing at SuperSpeed rates. Cc: Felipe Balbi Cc: stable Signed-off-by: taehyun.cho Signed-off-by: Will McVicker Reviewed-by: Peter Chen Link: https://lore.kernel.org/r/20201127140559.381351-3-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman --- drivers/usb/gadget/function/f_acm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/gadget/function/f_acm.c +++ b/drivers/usb/gadget/function/f_acm.c @@ -684,7 +684,7 @@ acm_bind(struct usb_configuration *c, st acm_ss_out_desc.bEndpointAddress = acm_fs_out_desc.bEndpointAddress; status = usb_assign_descriptors(f, acm_fs_function, acm_hs_function, - acm_ss_function, NULL); + acm_ss_function, acm_ss_function); if (status) goto fail;