Skip to content

Commit 555df58

Browse files
Chunfeng Yungregkh
authored andcommitted
usb: xhci-mtk: resume USB3 roothub first
Give USB3 devices a better chance to enumerate at USB3 speeds if they are connected to a suspended host. Porting from "671ffdff5b13 xhci: resume USB 3 roothub first" Cc: <stable@vger.kernel.org> Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ffe84e0 commit 555df58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/host/xhci-mtk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,10 +642,10 @@ static int __maybe_unused xhci_mtk_resume(struct device *dev)
642642
xhci_mtk_host_enable(mtk);
643643

644644
xhci_dbg(xhci, "%s: restart port polling\n", __func__);
645-
set_bit(HCD_FLAG_POLL_RH, &hcd->flags);
646-
usb_hcd_poll_rh_status(hcd);
647645
set_bit(HCD_FLAG_POLL_RH, &xhci->shared_hcd->flags);
648646
usb_hcd_poll_rh_status(xhci->shared_hcd);
647+
set_bit(HCD_FLAG_POLL_RH, &hcd->flags);
648+
usb_hcd_poll_rh_status(hcd);
649649
return 0;
650650
}
651651

0 commit comments

Comments
 (0)