Commit 9fa31ae8 authored by Hongchen Zhang's avatar Hongchen Zhang
Browse files

usb: xhci: add XHCI_NO_SOFT_RETRY quirk for EJ188

LoongArch inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6T7XW



--------------------------------

EJ188 has similar problems as the upstream commit
commit a4a251f8 ("usb: xhci: do not perform Soft Retry for some xHCI hosts")
so we add XHCI_NO_SOFT_RETRY quirk for it.

Signed-off-by: default avatarHongchen Zhang <zhanghongchen@loongson.cn>
Change-Id: I6b5153a5bb8f8a7b0fa4f4accb65fb1c00311561
parent 3e4b12e0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@

#define PCI_VENDOR_ID_ETRON		0x1b6f
#define PCI_DEVICE_ID_EJ168		0x7023
#define PCI_DEVICE_ID_EJ188		0x7052

#define PCI_DEVICE_ID_INTEL_LYNXPOINT_XHCI	0x8c31
#define PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI	0x9c31
@@ -278,6 +279,11 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
		xhci->quirks |= XHCI_TRUST_TX_LENGTH;
		xhci->quirks |= XHCI_BROKEN_STREAMS;
	}

	if (pdev->vendor == PCI_VENDOR_ID_ETRON &&
			pdev->device == PCI_DEVICE_ID_EJ188)
		xhci->quirks |= XHCI_NO_SOFT_RETRY;

	if (pdev->vendor == PCI_VENDOR_ID_RENESAS &&
	    pdev->device == 0x0014) {
		xhci->quirks |= XHCI_TRUST_TX_LENGTH;