Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp730368yba; Fri, 26 Apr 2019 07:53:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkyEHo/YYtXfsSrCL05upU6yAu30tVzkdccVWe3ZXfpUum9iNlExYdGZ5oeWSfkEH8sQeU X-Received: by 2002:a65:5941:: with SMTP id g1mr44355282pgu.51.1556290391733; Fri, 26 Apr 2019 07:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556290391; cv=none; d=google.com; s=arc-20160816; b=OGHbh6rskwTeoO+pnBSqVWEMbLxGDmOo+gFLnc/09rZWU15UbByHVpOnIPiJGejFM5 NbmmXr08zBZu7YUrVHTWeZlYnEjbwyRcaYHg74XPK1MbKXQzU74q6df9sPqGmavvHk+x h0fX2Kp+17vYcHfg+Qf34Qgyp66nmXao76vXqUFMEkRWbNPyjTf6/+N+HbtqmzALX5UY qbqUxoV2m1pWLK2oWL/E9r/h3Vq4C/GuoxEc5Ikn51RcXmXpOT6aquQzDsRxIyuXkr9F Zdx8cFj0JMh/TEE/gVhoZx4v1IU2vdoNbjwn+MLkgCU0UCJ6y8IzthaCRvnXsNyrD33M xTSg== 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=3FkiFNr2zoIxXp2r2T2xlqeRKWH8cfTl48gxMEQN488=; b=IUTrC7Cfgq0KSYrl17fzaEJQoFGoLQ3vWnELbXjJtMTHBHWsgA4Jxt+XVxa4qHC25a Yl9I7C/SWICwcGO2C9K/j82t4RsYVq0i84GtIJuTZSXpk8SWhCu+Fx+ZhMOOr5kaXFri 1Bd9t3By1TkcOnLdLtpvv2GACiWWKn38naG7Ik/Z4lvzxZtsb/IXMgSyw3rZOoQxBB3I svjbs08OXV6oeYDnzJEH52k2+wfjV8xsmcZ52soP12zLcGUmryDVhutapJ0r1FDyFC2w B81jTO16tX8nXzh3B87jmSK8oxkiJyzbuM1j9JSXvDrgk/SuZ576ukBhDOtjzZxCYlga +2eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="I/kvaUzH"; 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 z8si24300283pgf.593.2019.04.26.07.52.56; Fri, 26 Apr 2019 07:53:11 -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="I/kvaUzH"; 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 S1726597AbfDZOub (ORCPT + 99 others); Fri, 26 Apr 2019 10:50:31 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:3022 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbfDZOub (ORCPT ); Fri, 26 Apr 2019 10:50:31 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 26 Apr 2019 07:50:36 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 26 Apr 2019 07:50:30 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 26 Apr 2019 07:50:30 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL103.nvidia.com (172.20.187.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 26 Apr 2019 14:50:30 +0000 Received: from HQMAIL104.nvidia.com (172.18.146.11) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 26 Apr 2019 14:50:29 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL104.nvidia.com (172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 26 Apr 2019 14:50:29 +0000 Received: from jilin-desktop.nvidia.com (Not Verified[10.19.120.158]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Fri, 26 Apr 2019 07:50:29 -0700 From: Jim Lin To: CC: , Jim Lin Subject: [PATCH 3/6] usb: fotg210:Adjusted for usb_hub_clear_tt_buffer Date: Fri, 26 Apr 2019 22:50:27 +0800 Message-ID: <1556290227-9480-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=1556290237; bh=3FkiFNr2zoIxXp2r2T2xlqeRKWH8cfTl48gxMEQN488=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type; b=I/kvaUzH13PQbyhYrhER5I3TZvtlc0iaPlt32BNc5h5135no/oZMc8L9LAf4Andi9 Fi0FpjYFHBIkxnsmHJd/Gu6VQY4XrdG9y1YUof9MT+lfYUkWzmI5qwqjJwAVZgsweQ bkPYlaifBylYU+c2BntcNhSpxgG52T1TTHzq7V4oPBcIvNxtOzzUhIrJj8Sha6Eks+ 7F2nSIUsfptxXGeD8VvLaolKuNm+W5uESuMOf8wLH1W2qVJwpJphUsq7my02+1jd/z bTgkYMZn2Iayvhd6u/8WJ7MFUq3XdrGPz3WGlJZ/viZokRC48kgzXX6563UlhUp0ho WkQYVDI0vKqMA== 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/fotg210-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 0da68df259c8..bd29ed0fbd46 100644 --- a/drivers/usb/host/fotg210-hcd.c +++ b/drivers/usb/host/fotg210-hcd.c @@ -2123,7 +2123,7 @@ static void fotg210_clear_tt_buffer(struct fotg210_hcd *fotg210, if (urb->dev->tt->hub != fotg210_to_hcd(fotg210)->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; } } -- 2.1.4