diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2018-10-01 11:36:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-01 20:59:02 -0400 |
commit | 555df5820e733cded7eb8d0bf78b2a791be51d75 (patch) | |
tree | 5f9e95a7e0cf3cc628876e81cb91f4d1edb2cdba | |
parent | ffe84e01bb1b38c7eb9c6b6da127a6c136d251df (diff) |
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>
-rw-r--r-- | drivers/usb/host/xhci-mtk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 7334da9e9779..71d0d33c3286 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) | |||
642 | xhci_mtk_host_enable(mtk); | 642 | xhci_mtk_host_enable(mtk); |
643 | 643 | ||
644 | xhci_dbg(xhci, "%s: restart port polling\n", __func__); | 644 | 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); | ||
647 | set_bit(HCD_FLAG_POLL_RH, &xhci->shared_hcd->flags); | 645 | set_bit(HCD_FLAG_POLL_RH, &xhci->shared_hcd->flags); |
648 | usb_hcd_poll_rh_status(xhci->shared_hcd); | 646 | usb_hcd_poll_rh_status(xhci->shared_hcd); |
647 | set_bit(HCD_FLAG_POLL_RH, &hcd->flags); | ||
648 | usb_hcd_poll_rh_status(hcd); | ||
649 | return 0; | 649 | return 0; |
650 | } | 650 | } |
651 | 651 | ||