hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/usb/host/xhci-pci.c
....@@ -327,6 +327,18 @@
327327 pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_4))
328328 xhci->quirks |= XHCI_NO_SOFT_RETRY;
329329
330
+ if (pdev->vendor == PCI_VENDOR_ID_ZHAOXIN) {
331
+ xhci->quirks |= XHCI_ZHAOXIN_HOST;
332
+
333
+ if (pdev->device == 0x9202) {
334
+ xhci->quirks |= XHCI_RESET_ON_RESUME;
335
+ xhci->quirks |= XHCI_ZHAOXIN_TRB_FETCH;
336
+ }
337
+
338
+ if (pdev->device == 0x9203)
339
+ xhci->quirks |= XHCI_ZHAOXIN_TRB_FETCH;
340
+ }
341
+
330342 /* xHC spec requires PCI devices to support D3hot and D3cold */
331343 if (xhci->hci_version >= 0x120)
332344 xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW;
....@@ -451,6 +463,8 @@
451463 if (xhci->quirks & XHCI_DEFAULT_PM_RUNTIME_ALLOW)
452464 pm_runtime_allow(&dev->dev);
453465
466
+ dma_set_max_seg_size(&dev->dev, UINT_MAX);
467
+
454468 return 0;
455469
456470 put_usb3_hcd: