Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp473411pxk; Wed, 9 Sep 2020 10:04:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/fsBM4jt7KNmkczamWPm2Cagh9mc5Vnsu901Cqm2kwNlIw9AOE9HMOKvPOK8Ks3iUWA1R X-Received: by 2002:a17:906:fb84:: with SMTP id lr4mr4891834ejb.282.1599671074013; Wed, 09 Sep 2020 10:04:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599671074; cv=none; d=google.com; s=arc-20160816; b=ytbWKICPNBMdn8oZXV14928Had+jTnjA6DwzsGJvcCf53NgyflY93+cOX6NHUoH2bI Oe5E32oy+TXsrzZ1vnulPMJyWUV4/3MZxXObFIwiCAOKCXJ/Mg79DFg2cfp6XVep9K4c /A8Q4U1ynWyvbAQ9Bm5rHeP5qa8VYT3rAVfSFObu2Gv8R2fKZQIKfIhmj8P8tKj6QLBM e39+mZ2vXz9gnsChqz6Sg1oMen7vfCeMzV9rwY1Pw1EjajzFBWoeSnZI1dkdMqR45RjX VUtZumYnas+t0Zud/Y2O2vpKdpID9dozjYzR0NAcDe/1gYoZnEw8VixaT9f0SLxGksxZ 555w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=aUuyvqAEDH1oMAqz3FHwhfh+JuqiaoR0sloq9Az7qIw=; b=Hp7A5JLbfcdjyriqRan2nEL3/3VEmqT5N30a39UOKfnH0FYiNq3sUV5YXbogJo7Amx 45Q3Xzz0OHNNIRTJIyMBD4bR29rSFTAAeudywGQRy+6/qyUFHhsELhzEiH7QXVqN6Oo4 QFRhM3YU2/QEZNysyGEE+7Ed8kRPbj2m7WxIhrXzHg+jNxdRsa2u/qBvC6/zVlbwSOAB SFRoYv1wK42ipuqvjiHOo4Ad3GMIvsItFSoBYxproyJbyLjoTVb23qAUW8qcMO1x+UAN z1CdWRunnPwBLyAVxlMOh2Ia4CPA34du56jM9rTy4T7M0NZc8QFAiwH8coDFv7PovEJL wLlQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c7si2192358edl.290.2020.09.09.10.04.11; Wed, 09 Sep 2020 10:04:34 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730518AbgIIRDf (ORCPT + 99 others); Wed, 9 Sep 2020 13:03:35 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:11760 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730429AbgIIPqd (ORCPT ); Wed, 9 Sep 2020 11:46:33 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id F39D713A618DF6ED4B13; Wed, 9 Sep 2020 21:44:13 +0800 (CST) Received: from localhost (10.174.179.108) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Wed, 9 Sep 2020 21:44:07 +0800 From: YueHaibing To: , , , CC: , Subject: [PATCH -next] usb: host: ehci-sched: Remove ununsed function tt_start_uframe() Date: Wed, 9 Sep 2020 21:44:05 +0800 Message-ID: <20200909134405.34036-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.179.108] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit b35c5009bbf6 ("USB: EHCI: create per-TT bandwidth tables") left behind this, remove it. Signed-off-by: YueHaibing --- drivers/usb/host/ehci-sched.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c index 847979f265b1..6dfb242f9a4b 100644 --- a/drivers/usb/host/ehci-sched.c +++ b/drivers/usb/host/ehci-sched.c @@ -307,26 +307,6 @@ static int __maybe_unused same_tt(struct usb_device *dev1, #ifdef CONFIG_USB_EHCI_TT_NEWSCHED -/* Which uframe does the low/fullspeed transfer start in? - * - * The parameter is the mask of ssplits in "H-frame" terms - * and this returns the transfer start uframe in "B-frame" terms, - * which allows both to match, e.g. a ssplit in "H-frame" uframe 0 - * will cause a transfer in "B-frame" uframe 0. "B-frames" lag - * "H-frames" by 1 uframe. See the EHCI spec sec 4.5 and figure 4.7. - */ -static inline unsigned char tt_start_uframe(struct ehci_hcd *ehci, __hc32 mask) -{ - unsigned char smask = hc32_to_cpu(ehci, mask) & QH_SMASK; - - if (!smask) { - ehci_err(ehci, "invalid empty smask!\n"); - /* uframe 7 can't have bw so this will indicate failure */ - return 7; - } - return ffs(smask) - 1; -} - static const unsigned char max_tt_usecs[] = { 125, 125, 125, 125, 125, 125, 30, 0 }; -- 2.17.1