Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp185752imm; Tue, 28 Aug 2018 19:57:57 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda1JAT/pGMyXLcZ0x8LtyHPa2Aec01z3JrlcV8Gu3rvM47m1O8d6nTFFnJxN7eHVeBCdocz X-Received: by 2002:a62:c0a:: with SMTP id u10-v6mr3993882pfi.43.1535511477422; Tue, 28 Aug 2018 19:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535511477; cv=none; d=google.com; s=arc-20160816; b=oqRPN9gpBGjPa/znQKta9pEd7+Di1LaItvTSJI8N/26gObjc8OjzHz6yKZKoT2uxEF BPeyWBoZWN81taVliUw8jWPvDsoC59APlJi4frGKw83TCKEbe48s9NIOMdn6mkojp9TH xGNTCRFuIFKQjsBxqPEHUDbC7y9SDAdOklUz5f69oE/MCMEPqINOO0l23LvKTnVv9c4A 9EbYnBtOyTZxqf2gvBC6H0Haod8H7cV7/GbG5V3SgQ49/g63NIMClrmRcx2ZWkONXjBu itdM7G3w76ZQRL1tJrWCaHZuUHSaZdk9cP1aHdMSSEPYPF+3GJSPs9wWQFGjPgr79gtz NB7w== 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:arc-authentication-results; bh=qaDySfmlwTsnrvXY0yMizJBnP1jYrzLsJb1h/qmsMFE=; b=NWJ2q0ZE5yw/6BUMm+GTp6rBON7MsJ8//dCzNmtehyxU6KbE2IdWVp0gVMxeIsPZ/4 wUWck54IVAms0V8ch2016oAy1AVzvCczqVoHGS6HVjuLjrVTnCP1PC4Li3O+5OpUKjBx QuNeB3gi75Oo8QRmPUJamhyl4i6IvpqTzb7KGI3DtYPJoly0ze+DW1nhcyZ4dkkFrLWH KIocS8S+mMCxgajOe7Lr3h7E43ZhT8xJwkdaLu7663EB0icBj4vZ7V6lzQ6yzwt1Zear RMroUdDp7sBAF1dJileK3rdzUhBsaGZsW3+KSBO7g9D0xD8w+SaDSwEKPuow4h36wjnW 6TRg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si2157080pgk.275.2018.08.28.19.57.30; Tue, 28 Aug 2018 19:57:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727325AbeH2GuF (ORCPT + 99 others); Wed, 29 Aug 2018 02:50:05 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:19349 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725882AbeH2GuF (ORCPT ); Wed, 29 Aug 2018 02:50:05 -0400 X-UUID: 7ba6e562d5c7422b9445255976640f4a-20180829 Received: from mtkcas36.mediatek.inc [(172.27.4.250)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1807934373; Wed, 29 Aug 2018 10:55:22 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 29 Aug 2018 10:55:20 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 29 Aug 2018 10:55:19 +0800 From: Chunfeng Yun To: Mathias Nyman CC: Greg Kroah-Hartman , Felipe Balbi , Matthias Brugger , Alan Stern , Chunfeng Yun , , , , , Subject: [PATCH 1/6] usb: xhci-mtk: resume USB3 roothub first Date: Wed, 29 Aug 2018 10:55:13 +0800 Message-ID: <3bcc220aa54bfebc39cea54cd736388ad37ee0c5.1535510898.git.chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Give USB3 devices a better chance to enumerate at USB3 speeds if they are connected to a suspended host. Porting from "671ffdf xhci: resume USB 3 roothub first" Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 7334da9..71d0d33 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -642,10 +642,10 @@ static int __maybe_unused xhci_mtk_resume(struct device *dev) xhci_mtk_host_enable(mtk); xhci_dbg(xhci, "%s: restart port polling\n", __func__); - set_bit(HCD_FLAG_POLL_RH, &hcd->flags); - usb_hcd_poll_rh_status(hcd); set_bit(HCD_FLAG_POLL_RH, &xhci->shared_hcd->flags); usb_hcd_poll_rh_status(xhci->shared_hcd); + set_bit(HCD_FLAG_POLL_RH, &hcd->flags); + usb_hcd_poll_rh_status(hcd); return 0; } -- 1.9.1