Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-10-15 17:48:50 +0200
committerTakashi Iwai <tiwai@suse.de>2018-10-15 17:49:33 +0200
commitb76815cd2fe03cce1d42c6827ce8969a7d0b4b21 (patch)
tree84d1444d01c7b8e1a7a96b387f53cf94a16a4593
parent976d110cd5a6a073e02f173cd2c4ae4e9d60bf00 (diff)
usb: xhci-mtk: resume USB3 roothub first (bsc#1051510).
-rw-r--r--patches.drivers/usb-xhci-mtk-resume-USB3-roothub-first.patch42
-rw-r--r--series.conf1
2 files changed, 43 insertions, 0 deletions
diff --git a/patches.drivers/usb-xhci-mtk-resume-USB3-roothub-first.patch b/patches.drivers/usb-xhci-mtk-resume-USB3-roothub-first.patch
new file mode 100644
index 0000000000..f0cffa531e
--- /dev/null
+++ b/patches.drivers/usb-xhci-mtk-resume-USB3-roothub-first.patch
@@ -0,0 +1,42 @@
+From 555df5820e733cded7eb8d0bf78b2a791be51d75 Mon Sep 17 00:00:00 2001
+From: Chunfeng Yun <chunfeng.yun@mediatek.com>
+Date: Mon, 1 Oct 2018 18:36:08 +0300
+Subject: [PATCH] usb: xhci-mtk: resume USB3 roothub first
+Git-commit: 555df5820e733cded7eb8d0bf78b2a791be51d75
+Patch-mainline: v4.19-rc7
+References: bsc#1051510
+
+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>
+Acked-by: Takashi Iwai <tiwai@suse.de>
+
+---
+ 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 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)
+ 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;
+ }
+
+--
+2.19.0
+
diff --git a/series.conf b/series.conf
index 398e8c0aa6..21ad9495a4 100644
--- a/series.conf
+++ b/series.conf
@@ -17856,6 +17856,7 @@
patches.drivers/USB-serial-simple-add-Motorola-Tetra-MTP6550-id.patch
patches.drivers/usb-cdc_acm-Do-not-leak-URB-buffers.patch
patches.drivers/xhci-Add-missing-CAS-workaround-for-Intel-Sunrise-Po.patch
+ patches.drivers/usb-xhci-mtk-resume-USB3-roothub-first.patch
# davem/net
patches.fixes/udp-Unbreak-modules-that-rely-on-external-__skb_recv.patch