aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Ribalda <[email protected]>2023-10-27 11:28:20 +0000
committerGreg Kroah-Hartman <[email protected]>2023-11-21 14:31:14 +0000
commit8bbae288a85abed6a1cf7d185d8b9dc2f5dcb12c (patch)
tree1cf6eb13bb8f5f7cb566d32d99b9dec40da2fd08
parentusb: config: fix iteration issue in 'usb_get_bos_descriptor()' (diff)
downloadkernel-8bbae288a85abed6a1cf7d185d8b9dc2f5dcb12c.tar.gz
kernel-8bbae288a85abed6a1cf7d185d8b9dc2f5dcb12c.zip
usb: dwc3: set the dma max_seg_size
Allow devices to have dma operations beyond 4K, and avoid warnings such as: DMA-API: dwc3 a600000.usb: mapping sg segment longer than device claims to support [len=86016] [max=65536] Cc: [email protected] Fixes: 72246da40f37 ("usb: Introduce DesignWare USB3 DRD Driver") Reported-by: Zubin Mithra <[email protected]> Signed-off-by: Ricardo Ribalda <[email protected]> Acked-by: Thinh Nguyen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/usb/dwc3/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 0328c86ef806..b101dbf8c5dc 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -2034,6 +2034,8 @@ static int dwc3_probe(struct platform_device *pdev)
pm_runtime_put(dev);
+ dma_set_max_seg_size(dev, UINT_MAX);
+
return 0;
err_exit_debugfs: