提交 9fa31ae8 编写于 作者: H Hongchen Zhang

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: NHongchen Zhang <zhanghongchen@loongson.cn>
Change-Id: I6b5153a5bb8f8a7b0fa4f4accb65fb1c00311561
上级 3e4b12e0
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册