Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp730714yba; Fri, 26 Apr 2019 07:53:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/9TMVpoQJkX6xLAI/DpxuFDobA6kffvSS1Vp7i/t6Aax8kcRF+2jpqJTlM34Kny1d6ePV X-Received: by 2002:a63:4721:: with SMTP id u33mr13877050pga.199.1556290411668; Fri, 26 Apr 2019 07:53:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556290411; cv=none; d=google.com; s=arc-20160816; b=Sq7cRAQVF4cU/5UmlE5m5iX/X/veRygNQJEVfMQdWqIcqtcTn0okU9dYGopHxDLt+T pAclK1a1iEGSS12drWpg4YKqHyd4mGKPRiC+eZywqAolQlXvfidBK19wNZ3IiM7xartP p2jiyueAEW8FVrDgwk+DvI3AIYkzp82BDzivS5G08VuB1qFpTN25fs5eWAZdDoxVPzqc HVfzDu2ZAsSbCpB73Qww41EBYqWee14pIBNzYNofEWEivXFX6JLEUeZ4PlBwgqRsPIf+ mj1XlKmmfLOccG9Jbu068cHfku770+eoxpRxcrFLYOKHNKzVAyMJRbNvMK+puSWC67wB +NtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:message-id :date:subject:cc:to:from; bh=hakNu7nmlWRRhwVrRoWCmmF4BvpmgMEUjJOZfH40V9I=; b=PZXJPwi1jS+EODbRSQDcWq3lkzthmSE6mTXpiyMxAoPuo6X7O3akial1O4uJEsmIeW zXMFat7x33VT2iHcugxni3PkcPGWPtqaBXJtS5cyuExS9991gVQAKe9HXfvUB733rH6Q PxlN3zMNTHYKvCuHNTIDbZBT2lWlasbDPhQmdszJG/eCG4s9uWxg8ESsYV5avjUCEA2Y xazojx5zefCgshJfmsPtFwgVCO0J/hMQP7qNrJ3n9caZkWSv1JG4VCyvpldcvAGHD1n9 YiOcJEyjwHOI3tRitXPgOJVbzxdMjDJVEy9f3C4voeZmkQQzilCEVukbEATZJIEf5x8S BdrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="mvC/tSy0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g13si1496859plo.11.2019.04.26.07.53.16; Fri, 26 Apr 2019 07:53:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="mvC/tSy0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726674AbfDZOuo (ORCPT + 99 others); Fri, 26 Apr 2019 10:50:44 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:5987 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbfDZOun (ORCPT ); Fri, 26 Apr 2019 10:50:43 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 26 Apr 2019 07:50:15 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Fri, 26 Apr 2019 07:50:42 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Fri, 26 Apr 2019 07:50:42 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL104.nvidia.com (172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 26 Apr 2019 14:50:42 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 26 Apr 2019 14:50:42 +0000 Received: from jilin-desktop.nvidia.com (Not Verified[10.19.120.158]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Fri, 26 Apr 2019 07:50:41 -0700 From: Jim Lin To: CC: , Jim Lin Subject: [PATCH 4/6] usb: ehci: Adjusted for usb_hub_clear_tt_buffer Date: Fri, 26 Apr 2019 22:50:39 +0800 Message-ID: <1556290239-9523-1-git-send-email-jilin@nvidia.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1556290215; bh=hakNu7nmlWRRhwVrRoWCmmF4BvpmgMEUjJOZfH40V9I=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type; b=mvC/tSy0BCim/OS5OhaITsNFD6MLHUL8mubBGIbYdqszQ8DVXJmxNpq0Q0fTTfOWK ZtajKN/7XVfk5udTTEsd2dGWfAQqAWnv0NV6l+wsHGyzHChFWuSSsTZDXb3arZVoXs Xac9zoyg9zRBuTcROvSGr+04PtDhDOcH3RJKjum24od7BVmKZhdaFq5NK0LkxonLx+ 8mzc/Ua6hBSAGGLcZpOTFQ2JIJ9zNtMVhCvEuc1SwA4Xwp77pcWP6FzFtmQtcbDeV2 8jTYBP751IOeLPc43CSVVDuatUDmU2JkSK0L+VLpJdXYkO+Xtx67LhNPa0+Xr+SNbj RqQQqHl1mJPtw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add argument for usb_hub_clear_tt_buffer to specify device number that will have the TT state of its hub cleared. Signed-off-by: Jim Lin --- drivers/usb/host/ehci-q.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-q.c b/drivers/usb/host/ehci-q.c index aa2f77f1506d..9f64c260239e 100644 --- a/drivers/usb/host/ehci-q.c +++ b/drivers/usb/host/ehci-q.c @@ -169,7 +169,7 @@ static void ehci_clear_tt_buffer(struct ehci_hcd *ehci, struct ehci_qh *qh, if (!ehci_is_TDI(ehci) || urb->dev->tt->hub != ehci_to_hcd(ehci)->self.root_hub) { - if (usb_hub_clear_tt_buffer(urb) == 0) + if (!usb_hub_clear_tt_buffer(urb, urb->dev->devnum)) qh->clearing_tt = 1; } else { -- 2.1.4