Skip to content
Snippets Groups Projects
Commit 5ac96667 authored by Ricardo Ribalda's avatar Ricardo Ribalda Committed by Greg Kroah-Hartman
Browse files

usb: dwc3: set the dma max_seg_size


commit 8bbae288 upstream.

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: stable@vger.kernel.org
Fixes: 72246da4 ("usb: Introduce DesignWare USB3 DRD Driver")
Reported-by: default avatarZubin Mithra <zsm@chromium.org>
Signed-off-by: default avatarRicardo Ribalda <ribalda@chromium.org>
Acked-by: default avatarThinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20231026-dwc3-v2-1-1d4fd5c3e067@chromium.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2620c597
No related branches found
No related tags found
2 merge requests!185🤖 Sync Bot: Update v5.10-ktn to Latest Stable Kernel (v5.10.234),!172🤖 Sync Bot: Update v5.10-ktn to Latest Stable Kernel (v5.10.230)
...@@ -1627,6 +1627,8 @@ static int dwc3_probe(struct platform_device *pdev) ...@@ -1627,6 +1627,8 @@ static int dwc3_probe(struct platform_device *pdev)
pm_runtime_put(dev); pm_runtime_put(dev);
dma_set_max_seg_size(dev, UINT_MAX);
return 0; return 0;
err5: err5:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment