Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp636475pxt; Thu, 12 Aug 2021 06:27:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyYCQA0v6k5HqvJ+k6zH/ftraHmeza7fd8nCjdkp769WHBi+3qQVyTTwScz9sCLgl6ui2e X-Received: by 2002:a17:906:774f:: with SMTP id o15mr3707945ejn.200.1628774873887; Thu, 12 Aug 2021 06:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628774873; cv=none; d=google.com; s=arc-20160816; b=mVeA9887Epc8j/O/D6+3XjJsZP8EgcUnaDjNx9kt87sKcn+nJXpt3AZiMv4s1skbh9 4Fm7oGjfjTd0b1KEXufsbREGUJc3MDoDBH2q+4XB0dskQzwGloIRFGOCxhattCtWiRO0 lhFz+jBVwfXKmovIGedXQJQsTGIfRWae2qomeUQPaUCb/mxfw7bBlCSKCRHcCz0qfC4w 50HJQTxkRphMfWbA5H/l9uHj/PUaj1FfOtNTvDqK1nRIcNEmRbi6lWu3B2379rWPrBvh emxXgsyeKJdPU4MQYtfOrz9905auVDdtbCBfMUkjEAQkakbrM8ogdkmvgDskwZ89XUBk Bsag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=wn3SXWYHj5M6W7WzuJWKTuhWI29SZRKBlTz6M1EIu/U=; b=hk/9Pa/OBW2g7R3s/vZBRBpnbkyPL348+GtLRUZLvVIY7GCSAqvRnquLoKT0Oo4cbD rvIpOHN/XN2p/XF0w8A3RVslEodxmSR59glr/kJcok8CCChUcG4SNxIT6NWwrLXN7+Q3 4H9ATp+J1qc2YXhniz55Mi1ucG3G/JN3hriNoBYbnc8JEVommADBNf8uZqCAx35Ccr6y FHF2mqn40KvoIWg2YAoYG4rUmlRANlsfEq9Dtc7DqYSVWD0ezPNwN0n++Vj/IKoxEGps mpog0dRtrft3Dc/cdDYV6nZA1nycGZKD/WDQ5GAq6DYswGGNh4+MqOu30d9h2Qe0Gya4 F13A== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr13si2525812ejc.116.2021.08.12.06.27.29; Thu, 12 Aug 2021 06:27:53 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237866AbhHLNXU (ORCPT + 99 others); Thu, 12 Aug 2021 09:23:20 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:41712 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S237471AbhHLNTM (ORCPT ); Thu, 12 Aug 2021 09:19:12 -0400 X-UUID: dc0aa88cf276494a86dfc6e401f87968-20210812 X-UUID: dc0aa88cf276494a86dfc6e401f87968-20210812 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1136894012; Thu, 12 Aug 2021 21:18:45 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 12 Aug 2021 21:18:38 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 12 Aug 2021 21:18:36 +0800 From: Chunfeng Yun To: Greg Kroah-Hartman , Felipe Balbi CC: Pawel Laszczak , Al Cooper , Thierry Reding , Jonathan Hunter , Chunfeng Yun , Matthias Brugger , Christophe JAILLET , Yang Yingliang , Rikard Falkeborn , , , , , , , Eddie Hung , stable Subject: [PATCH v2 2/7] usb: mtu3: use @mult for HS isoc or intr Date: Thu, 12 Aug 2021 21:17:58 +0800 Message-ID: <1628774283-475-2-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1628774283-475-1-git-send-email-chunfeng.yun@mediatek.com> References: <1628774283-475-1-git-send-email-chunfeng.yun@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For HS isoc or intr, should use @mult but not @burst to save mult value. Fixes: 4d79e042ed8b ("usb: mtu3: add support for usb3.1 IP") Cc: stable Signed-off-by: Chunfeng Yun --- v2: new patch, split from [2/6] suggested by Felipe --- drivers/usb/mtu3/mtu3_gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/mtu3/mtu3_gadget.c b/drivers/usb/mtu3/mtu3_gadget.c index 5e21ba05ebf0..635ad277cb13 100644 --- a/drivers/usb/mtu3/mtu3_gadget.c +++ b/drivers/usb/mtu3/mtu3_gadget.c @@ -92,7 +92,7 @@ static int mtu3_ep_enable(struct mtu3_ep *mep) usb_endpoint_xfer_int(desc)) { interval = desc->bInterval; interval = clamp_val(interval, 1, 16) - 1; - burst = (max_packet & GENMASK(12, 11)) >> 11; + mult = (max_packet & GENMASK(12, 11)) >> 11; } break; default: -- 2.18.0