850c873
From: Hans de Goede <hdegoede@redhat.com>
850c873
Date: Fri, 5 Dec 2014 11:01:00 +0100
c47527a
Subject: [PATCH] xhci: Add broken-streams quirk for Fresco Logic FL1000G xhci
c47527a
 controllers
850c873
MIME-Version: 1.0
850c873
Content-Type: text/plain; charset=UTF-8
850c873
Content-Transfer-Encoding: 8bit
850c873
850c873
Streams do not work reliabe on Fresco Logic FL1000G xhci controllers,
850c873
trying to use them results in errors like this:
850c873
850c873
21:37:33 kernel: xhci_hcd 0000:04:00.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
850c873
21:37:33 kernel: xhci_hcd 0000:04:00.0: @00000000368b3570 9067b000 00000000 05000000 01078001
850c873
21:37:33 kernel: xhci_hcd 0000:04:00.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
850c873
21:37:33 kernel: xhci_hcd 0000:04:00.0: @00000000368b3580 9067b400 00000000 05000000 01038001
850c873
850c873
As always I've ordered a pci-e addon card with a Fresco Logic controller for
850c873
myself to see if I can come up with a better fix then the big hammer, in
850c873
the mean time this will make uas devices work again (in usb-storage mode)
850c873
for FL1000G users.
850c873
850c873
Reported-by: Marcin ZajÄ…czkowski <mszpak@wp.pl>
850c873
Cc: stable@vger.kernel.org # 3.15
850c873
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
850c873
---
850c873
 drivers/usb/host/xhci-pci.c | 2 ++
850c873
 1 file changed, 2 insertions(+)
850c873
850c873
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
850c873
index d41ce7aaa97d..63f79aa82673 100644
850c873
--- a/drivers/usb/host/xhci-pci.c
850c873
+++ b/drivers/usb/host/xhci-pci.c
850c873
@@ -80,6 +80,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
850c873
 				"must be suspended extra slowly",
850c873
 				pdev->revision);
850c873
 		}
850c873
+		if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK)
850c873
+			xhci->quirks |= XHCI_BROKEN_STREAMS;
850c873
 		/* Fresco Logic confirms: all revisions of this chip do not
850c873
 		 * support MSI, even though some of them claim to in their PCI
850c873
 		 * capabilities.
850c873
-- 
850c873
2.1.0
850c873