Skip to content

Commit 35123e6

Browse files
Chunfeng Yungregkh
authored andcommitted
usb: xhci-mtk: resume USB3 roothub first
commit 555df58 upstream. 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 c096f5c commit 35123e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/usb/host/xhci-mtk.c

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

782782
xhci_dbg(xhci, "%s: restart port polling\n", __func__);
783-
set_bit(HCD_FLAG_POLL_RH, &hcd->flags);
784-
usb_hcd_poll_rh_status(hcd);
785783
set_bit(HCD_FLAG_POLL_RH, &xhci->shared_hcd->flags);
786784
usb_hcd_poll_rh_status(xhci->shared_hcd);
785+
set_bit(HCD_FLAG_POLL_RH, &hcd->flags);
786+
usb_hcd_poll_rh_status(hcd);
787787
return 0;
788788
}
789789

0 commit comments

Comments
 (0)