Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp729918yba; Fri, 26 Apr 2019 07:52:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyS5GInvuDDLwyZ6x5weUh/CHtZOjYbZ4gLjfyOr3rz6xEnkQDRV+IXm5okdAYAy3ERt9WU X-Received: by 2002:a17:902:848d:: with SMTP id c13mr20869746plo.279.1556290364751; Fri, 26 Apr 2019 07:52:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556290364; cv=none; d=google.com; s=arc-20160816; b=mpBgdf9zORyGI+C6dQiF6mdCa/L1grpdtPqAFftHckReXZrTHvAsXjUA1wUKjzWyJU OLkodtv23tS9TTW2BCZZfpdl3CIGbrwbEvWFgfAhW84nZ6x1kyQnO3mSC1YQG+0KCQEj aMQpSMe1jqJWgrZU+gWdZpj6hkPJMDbSYekRxbFOdnB2kYQtpSMfQICoOpydmUcpzBSp q7XIIXpPDi+gVrvHHLtuFn+bgShDfY2AAVOiQ8ivtpmKWvhlo2ChpaoFS4zv0z79kItA CBKQ43FFK1XVmBCf3ac9ke8NJ4y4cPiN0+aQYsWq6DRysaHr7chn0/pMpDs2pZ7UQDW7 n/0Q== 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=v34xjFzSvqBXRMCnwm/8i+4X+lkRZq/wrmlwB+tTkjE=; b=UstbliH/ZshIsa3OBWAvtvpfB5i6MtMhDZW0GbkRBdhF8qPsN2Yv2oYmZb78OC2+6O A281lppqQr4u0F9a0+YEqPNlJ4y6ne2yHsslZ1aHjsUBnzUjU2SJ7YRF6jNBmPWvGadG NRcbfGZ0f6oL0CmgDwwKOZM6AHdEhXU95L0IEysmevhIEHPggmaoDBHGAGDeisRxzBEp 7Ru4pX0WuYRmC9i83C+SkZadzi+f4Rw4lmy2KlvWUl2yKIKCg+dOO15AJXYmjlA7vujF bo+HAIlfMVC3si0PiXqKgDW1CGwFcS7/Q0b1lICRDbo9HUAcjb2UOrHYHqC9TVKVz+Xt joww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=PIk3ArTS; 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 m73si3510686pga.271.2019.04.26.07.52.29; Fri, 26 Apr 2019 07:52:44 -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=PIk3ArTS; 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 S1726691AbfDZOuy (ORCPT + 99 others); Fri, 26 Apr 2019 10:50:54 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:5995 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbfDZOux (ORCPT ); Fri, 26 Apr 2019 10:50:53 -0400 Received: from hqpgpgate101.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:26 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 26 Apr 2019 07:50:53 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 26 Apr 2019 07:50:53 -0700 Received: from HQMAIL112.nvidia.com (172.18.146.18) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 26 Apr 2019 14:50:53 +0000 Received: from HQMAIL103.nvidia.com (172.20.187.11) by HQMAIL112.nvidia.com (172.18.146.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 26 Apr 2019 14:50:52 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL103.nvidia.com (172.20.187.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 26 Apr 2019 14:50:52 +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:52 -0700 From: Jim Lin To: CC: , Jim Lin Subject: [PATCH 5/6] usb: dwc2: Adjusted for usb_hub_clear_tt_buffer Date: Fri, 26 Apr 2019 22:50:50 +0800 Message-ID: <1556290250-9567-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=1556290226; bh=v34xjFzSvqBXRMCnwm/8i+4X+lkRZq/wrmlwB+tTkjE=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type; b=PIk3ArTS7muqB65o1mklZdn3+sigbcbqGewkqGNt4r0c5Y0/oGVExvB286AzZWkAK Pezw85SU7kBxsScACbyPqeR5onlTZD4krMuE01oJ8uFPFjVmSmhbAkvDWtEYhqHf1G Zcmze7SeM0ZmejTxVLF5ZYMafQL0cs/i8iz4wupa4anRk/4qwfUcNPlg7ar6f5ReKh 9b82oJjPl3o64UoZRRsJyolWq6WgbOXkus1Pr9BLxrD3qahKXQh5GePf0HravOKcoc dwhZihUTfjUUNu5SKOXgG8/zqtRPPulOfwzeBliITNJLcLFBwtqukPuoHPgvYA8jqA tplvNe8avmZ0A== 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/dwc2/hcd_intr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/hcd_intr.c b/drivers/usb/dwc2/hcd_intr.c index 88b5dcf3aefc..a3bb6911a62a 100644 --- a/drivers/usb/dwc2/hcd_intr.c +++ b/drivers/usb/dwc2/hcd_intr.c @@ -125,7 +125,7 @@ static void dwc2_hc_handle_tt_clear(struct dwc2_hsotg *hsotg, if (qtd->urb->status != -EPIPE && qtd->urb->status != -EREMOTEIO) { chan->qh->tt_buffer_dirty = 1; - if (usb_hub_clear_tt_buffer(usb_urb)) + if (usb_hub_clear_tt_buffer(usb_urb, usb_urb->dev->devnum)) /* Clear failed; let's hope things work anyway */ chan->qh->tt_buffer_dirty = 0; } -- 2.1.4