Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp728972yba; Fri, 26 Apr 2019 07:51:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdGlepZPu1j7pUd1vU3VpSt9uhi7XSgNTvKJch4QmxwKbb8J4ezteyINTDtZAJit8ObHNd X-Received: by 2002:a63:6604:: with SMTP id a4mr11657383pgc.104.1556290303911; Fri, 26 Apr 2019 07:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556290303; cv=none; d=google.com; s=arc-20160816; b=crlRuLs4T0oGpjm0ZGuG8Oenvf5/HbFaEcSYWCX1dl8IN1M+oFjkhN96n5HibZ7+Jy IsvrLX1rwqIWsuushpf665Bj6C5I6RZUXsKkxa1by/yBGWca5q7IB03nh1v6SwUM5DgO efwG5ahRTvK/TC++rNQ0x8h10WV5sgBD/OzMgUsrg9cDe+a30xarkmB/ieze0L9ihZhL mfMZu5BNekivLq4tJUzGEx5sURPf/drb89ZfkkvTShPr2B9Cvu2KBr+MrbcE3ZenGKkR 6HX6TIwmKCMnWp+WHX9Uh/uWet6Ufs0p9aZ7ATdHbUzwIwXNfUwVVTsc7UVxoxmU4jTo 3low== 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=NxQERjSCGZyhDFxGHImVNe7OVFgLr0UrsSrAMz86Ix8=; b=rmhG2chGDAg/wtt0iQ2R1ncqR1PZ3Yxoe/WZ2MdE9PaGKxqTsdgLeGcuVMPPcYwmbr 8oPgF7nGtEBhAiCoo/67PBCI7NPpLX2wdPxP4nkxxrV6iX5RN82c6LTcdn8MGncHpwwm WVZKiy+4qwF/o1/E2uyY/NLwLEoz7bKB15KK9V1f9Qv2ET92bYiTFesJP6tbs60//YNl 1k/BHz0FSgnNad4GLzY3t44epoRbYF5O/QNMQ2VJzQN116JRxiuyCzc098g/kOeMtn37 OIXkIXGfHy8SXWbAcPLOyozNpTymhKiO7wQNyetxwrtYL5WZXBz5ZY28jp91cWP4nZpg 67tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="oPvDDC/s"; 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 c22si26125101plo.412.2019.04.26.07.51.28; Fri, 26 Apr 2019 07:51:43 -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="oPvDDC/s"; 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 S1726553AbfDZOuW (ORCPT + 99 others); Fri, 26 Apr 2019 10:50:22 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:3013 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbfDZOuV (ORCPT ); Fri, 26 Apr 2019 10:50:21 -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:27 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 26 Apr 2019 07:50:21 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 26 Apr 2019 07:50:21 -0700 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 26 Apr 2019 14:50:21 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 26 Apr 2019 14:50:20 +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:20 -0700 From: Jim Lin To: CC: , Jim Lin Subject: [PATCH 2/6] usb: isp1760:Adjusted for usb_hub_clear_tt_buffer Date: Fri, 26 Apr 2019 22:50:18 +0800 Message-ID: <1556290218-9436-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=1556290227; bh=NxQERjSCGZyhDFxGHImVNe7OVFgLr0UrsSrAMz86Ix8=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type; b=oPvDDC/sC45alIZG5yMQWjzgcGYfp9OfpdNa2wyM00FdYGssE7vpvwU6l9YHgMonb SlCGCfMNHQsX8hgRZqIo/NoC7mzBHKXw/kJthdXrGC3x82E8BbR/GMN1gbyvVZ0alP vc749KroF3z9ogJTMNp3CaJC7KFg/ZHVqrbHPdh1XVZU57Iogjw8WX+uwPUyx4cMRF CsgJ8+iioMZyExeRAwZ6UABneBk7cmFMKV5HZ89lEd2lFVeuNppj2Xzewnpm0CojO/ NJWdTvCCB3yNieIBCeR7AZZz8WXobYZ2HRJOdpyh0L/RHEO3K8Ks5VnuTsCoEi1CCA ZbL0iJONrcMfA== 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/isp1760/isp1760-hcd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c index 8142c6b4c4cf..f1d68092becb 100644 --- a/drivers/usb/isp1760/isp1760-hcd.c +++ b/drivers/usb/isp1760/isp1760-hcd.c @@ -1166,7 +1166,8 @@ static void handle_done_ptds(struct usb_hcd *hcd) (qtd->urb->status != -EPIPE) && (qtd->urb->status != -EREMOTEIO)) { qh->tt_buffer_dirty = 1; - if (usb_hub_clear_tt_buffer(qtd->urb)) + if (usb_hub_clear_tt_buffer(qtd->urb, + qtd->urb->dev->devnum)) /* Clear failed; let's hope things work anyway */ qh->tt_buffer_dirty = 0; @@ -1633,7 +1634,7 @@ static void dequeue_urb_from_qtd(struct usb_hcd *hcd, struct isp1760_qh *qh, if ((urb->dev->speed != USB_SPEED_HIGH) && urb_was_running) { qh->tt_buffer_dirty = 1; - if (usb_hub_clear_tt_buffer(urb)) + if (usb_hub_clear_tt_buffer(urb, urb->dev->devnum)) /* Clear failed; let's hope things work anyway */ qh->tt_buffer_dirty = 0; } -- 2.1.4