summaryrefslogtreecommitdiffstats
path: root/xhci-Add-broken-streams-quirk-for-Fresco-Logic-FL100.patch
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@fedoraproject.org>2014-12-10 14:11:21 -0500
committerJosh Boyer <jwboyer@fedoraproject.org>2014-12-10 14:11:56 -0500
commit7722e301a4f62e3072ff0e411afdcedf416fbf9e (patch)
tree72451a6419bd3019300e2f811323ebd434d42a3d /xhci-Add-broken-streams-quirk-for-Fresco-Logic-FL100.patch
parent49da9ad901bda5d3c63934bae1f9c8bc6a98a7e2 (diff)
downloadkernel-7722e301a4f62e3072ff0e411afdcedf416fbf9e.tar.gz
kernel-7722e301a4f62e3072ff0e411afdcedf416fbf9e.tar.xz
kernel-7722e301a4f62e3072ff0e411afdcedf416fbf9e.zip
Fix UAS crashes with Seagate and Fresco Logic drives (rhbz 1164945)
Diffstat (limited to 'xhci-Add-broken-streams-quirk-for-Fresco-Logic-FL100.patch')
-rw-r--r--xhci-Add-broken-streams-quirk-for-Fresco-Logic-FL100.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/xhci-Add-broken-streams-quirk-for-Fresco-Logic-FL100.patch b/xhci-Add-broken-streams-quirk-for-Fresco-Logic-FL100.patch
new file mode 100644
index 000000000..43181ff04
--- /dev/null
+++ b/xhci-Add-broken-streams-quirk-for-Fresco-Logic-FL100.patch
@@ -0,0 +1,45 @@
+From e6a429eb0bfa03e3dca62e3922874d768833395f Mon Sep 17 00:00:00 2001
+From: Hans de Goede <hdegoede@redhat.com>
+Date: Fri, 5 Dec 2014 11:01:00 +0100
+Subject: [PATCH 1/3] xhci: Add broken-streams quirk for Fresco Logic FL1000G
+ xhci controllers
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Streams do not work reliabe on Fresco Logic FL1000G xhci controllers,
+trying to use them results in errors like this:
+
+21:37:33 kernel: xhci_hcd 0000:04:00.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
+21:37:33 kernel: xhci_hcd 0000:04:00.0: @00000000368b3570 9067b000 00000000 05000000 01078001
+21:37:33 kernel: xhci_hcd 0000:04:00.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
+21:37:33 kernel: xhci_hcd 0000:04:00.0: @00000000368b3580 9067b400 00000000 05000000 01038001
+
+As always I've ordered a pci-e addon card with a Fresco Logic controller for
+myself to see if I can come up with a better fix then the big hammer, in
+the mean time this will make uas devices work again (in usb-storage mode)
+for FL1000G users.
+
+Reported-by: Marcin Zajączkowski <mszpak@wp.pl>
+Cc: stable@vger.kernel.org # 3.15
+Signed-off-by: Hans de Goede <hdegoede@redhat.com>
+---
+ drivers/usb/host/xhci-pci.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
+index d41ce7aaa97d..63f79aa82673 100644
+--- a/drivers/usb/host/xhci-pci.c
++++ b/drivers/usb/host/xhci-pci.c
+@@ -80,6 +80,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
+ "must be suspended extra slowly",
+ pdev->revision);
+ }
++ if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK)
++ xhci->quirks |= XHCI_BROKEN_STREAMS;
+ /* Fresco Logic confirms: all revisions of this chip do not
+ * support MSI, even though some of them claim to in their PCI
+ * capabilities.
+--
+2.1.0
+