Skip to content

Commit 93915a4

Browse files
ribaldagregkh
authored andcommitted
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]>
1 parent dbd24ec commit 93915a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/usb/host/xhci-pci.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,8 @@ static int xhci_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
455455
if (xhci->quirks & XHCI_DEFAULT_PM_RUNTIME_ALLOW)
456456
pm_runtime_allow(&dev->dev);
457457

458+
dma_set_max_seg_size(&dev->dev, UINT_MAX);
459+
458460
return 0;
459461

460462
put_usb3_hcd:

0 commit comments

Comments
 (0)