Skip to content

Commit 4582ddf

Browse files
jwrdegoedegregkh
authored andcommitted
USB: xhci: Add broken streams quirk for Frescologic device id 1009
commit d95815ba6a0f287213118c136e64d8c56daeaeab upstream. I got one of these cards for testing uas with, it seems that with streams it dma-s all over the place, corrupting memory. On my first tests it managed to dma over the BIOS of the motherboard somehow and completely bricked it. Tests on another motherboard show that it does work with streams disabled. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c5b3227 commit 4582ddf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/usb/host/xhci-pci.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
/* Device for a quirk */
3838
#define PCI_VENDOR_ID_FRESCO_LOGIC 0x1b73
3939
#define PCI_DEVICE_ID_FRESCO_LOGIC_PDK 0x1000
40+
#define PCI_DEVICE_ID_FRESCO_LOGIC_FL1009 0x1009
4041
#define PCI_DEVICE_ID_FRESCO_LOGIC_FL1400 0x1400
4142

4243
#define PCI_VENDOR_ID_ETRON 0x1b6f
@@ -115,6 +116,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
115116
xhci->quirks |= XHCI_TRUST_TX_LENGTH;
116117
}
117118

119+
if (pdev->vendor == PCI_VENDOR_ID_FRESCO_LOGIC &&
120+
pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1009)
121+
xhci->quirks |= XHCI_BROKEN_STREAMS;
122+
118123
if (pdev->vendor == PCI_VENDOR_ID_NEC)
119124
xhci->quirks |= XHCI_NEC_HOST;
120125

0 commit comments

Comments
 (0)