projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89a410d
)
xhci-pci: set the dma max_seg_size
author
Ricardo Ribalda
<ribalda@chromium.org>
Mon, 16 Jan 2023 14:22:10 +0000
(16:22 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 06:22:44 +0000
(07:22 +0100)
commit
93915a4170e9defd56a767a18e6c4076f3d18609
upstream.
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: stable@vger.kernel.org
Cc: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link:
https://lore.kernel.org/r/20230116142216.1141605-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-pci.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/xhci-pci.c
b/drivers/usb/host/xhci-pci.c
index 105f2b8dc1ba3408d2bd1aa6f1a75b8596956619..61898b2f0ad4f4f8c8bca267643f2404fed9d1f3 100644
(file)
--- a/
drivers/usb/host/xhci-pci.c
+++ b/
drivers/usb/host/xhci-pci.c
@@
-456,6
+456,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: