.. | .. |
---|
327 | 327 | pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_4)) |
---|
328 | 328 | xhci->quirks |= XHCI_NO_SOFT_RETRY; |
---|
329 | 329 | |
---|
| 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 | + |
---|
330 | 342 | /* xHC spec requires PCI devices to support D3hot and D3cold */ |
---|
331 | 343 | if (xhci->hci_version >= 0x120) |
---|
332 | 344 | xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW; |
---|
.. | .. |
---|
451 | 463 | if (xhci->quirks & XHCI_DEFAULT_PM_RUNTIME_ALLOW) |
---|
452 | 464 | pm_runtime_allow(&dev->dev); |
---|
453 | 465 | |
---|
| 466 | + dma_set_max_seg_size(&dev->dev, UINT_MAX); |
---|
| 467 | + |
---|
454 | 468 | return 0; |
---|
455 | 469 | |
---|
456 | 470 | put_usb3_hcd: |
---|