diff options
author | Ricardo Ribalda <[email protected]> | 2023-01-16 16:22:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-01-17 16:37:24 +0100 |
commit | 93915a4170e9defd56a767a18e6c4076f3d18609 (patch) | |
tree | 56f2af3a54d30270500fc6d51edf629b96a49a33 | |
parent | dbd24ec17b85b45f4e823d1aa5607721920f2b05 (diff) |
xhci-pci: set the dma max_seg_size
Allow devices to have dma operations beyond 64K, and avoid warnings such
as:
xhci_hcd 0000:00:14.0: mapping sg segment longer than device claims to support [len=98304] [max=65536]
Cc: [email protected]
Cc: Takashi Iwai <[email protected]>
Signed-off-by: Ricardo Ribalda <[email protected]>
Signed-off-by: Mathias Nyman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/usb/host/xhci-pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 79d679b3e076..2c0d7038f040 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -455,6 +455,8 @@ static int xhci_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) if (xhci->quirks & XHCI_DEFAULT_PM_RUNTIME_ALLOW) pm_runtime_allow(&dev->dev); + dma_set_max_seg_size(&dev->dev, UINT_MAX); + return 0; put_usb3_hcd: |