[kernel/f20] Disable streams on via XHCI (rhbz 1132666)

Josh Boyer jwboyer at fedoraproject.org
Wed Aug 27 13:33:52 UTC 2014


commit c4bac1da92169f3d07ba47e9b73dd22ea443eb1e
Author: Josh Boyer <jwboyer at fedoraproject.org>
Date:   Wed Aug 27 08:15:27 2014 -0400

    Disable streams on via XHCI (rhbz 1132666)

 kernel.spec                                        |    9 ++++
 ...e-streams-on-Via-XHCI-with-device-id-0x34.patch |   40 ++++++++++++++++++++
 2 files changed, 49 insertions(+), 0 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index 4df687c..84202b5 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -759,6 +759,9 @@ Patch25131: 0001-uas-Limit-qdepth-to-32-when-connected-over-usb-2.patch
 #rhbz 1131551
 Patch25132: nfs3_list_one_acl-check-get_acl-result-with-IS_ERR_O.patch
 
+#rhbz 1132666
+Patch26016: xhci-Disable-streams-on-Via-XHCI-with-device-id-0x34.patch
+
 # END OF PATCH DEFINITIONS
 
 %endif
@@ -1476,6 +1479,9 @@ ApplyPatch 0001-uas-Limit-qdepth-to-32-when-connected-over-usb-2.patch
 #rhbz 1131551
 ApplyPatch nfs3_list_one_acl-check-get_acl-result-with-IS_ERR_O.patch
 
+#rhbz 1132666
+ApplyPatch xhci-Disable-streams-on-Via-XHCI-with-device-id-0x34.patch
+
 # END OF PATCH APPLICATIONS
 
 %endif
@@ -2287,6 +2293,9 @@ fi
 #                 ||----w |
 #                 ||     ||
 %changelog
+* Wed Aug 27 2014 Josh Boyer <jwboyer at fedoraproject.org>
+- Disable streams on via XHCI (rhbz 1132666)
+
 * Fri Aug 22 2014 Josh Boyer <jwboyer at fedoraproject.org>
 - Drop userns revert patch (rhbz 917708)
 
diff --git a/xhci-Disable-streams-on-Via-XHCI-with-device-id-0x34.patch b/xhci-Disable-streams-on-Via-XHCI-with-device-id-0x34.patch
new file mode 100644
index 0000000..0ea5722
--- /dev/null
+++ b/xhci-Disable-streams-on-Via-XHCI-with-device-id-0x34.patch
@@ -0,0 +1,40 @@
+From 9010432d0e8e9bc93d28990d07790cc400f3879f Mon Sep 17 00:00:00 2001
+From: Hans de Goede <hdegoede at redhat.com>
+Date: Mon, 25 Aug 2014 12:21:56 +0200
+Subject: [PATCH] xhci: Disable streams on Via XHCI with device-id 0x3432
+
+This is a bit bigger hammer then I would like to use for this, but for now
+it will have to make do. I'm working on getting my hands on one of these so
+that I can try to get streams to work (with a quirk flag if necessary) and
+then we can re-enable them.
+
+For now this at least makes uas capable disk enclosures work again by forcing
+fallback to the usb-storage driver.
+
+https://bugzilla.kernel.org/show_bug.cgi?id=79511
+
+Cc: stable at vger.kernel.org # 3.15
+Signed-off-by: Hans de Goede <hdegoede at redhat.com>
+---
+ drivers/usb/host/xhci-pci.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
+index 35d447780707..130345d401ac 100644
+--- a/drivers/usb/host/xhci-pci.c
++++ b/drivers/usb/host/xhci-pci.c
+@@ -149,6 +149,11 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
+ 		xhci->quirks |= XHCI_RESET_ON_RESUME;
+ 	if (pdev->vendor == PCI_VENDOR_ID_VIA)
+ 		xhci->quirks |= XHCI_RESET_ON_RESUME;
++
++	/* See https://bugzilla.kernel.org/show_bug.cgi?id=79511 */
++	if (pdev->vendor == PCI_VENDOR_ID_VIA &&
++			pdev->device == 0x3432)
++		xhci->quirks |= XHCI_BROKEN_STREAMS;
+ }
+ 
+ /* called during probe() after chip reset completes */
+-- 
+1.9.3
+


More information about the scm-commits mailing list