Skip to content

Commit 8bbae28

Browse files
ribaldagregkh
authored andcommitted
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: 72246da ("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]>
1 parent 974bba5 commit 8bbae28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/usb/dwc3/core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,6 +2034,8 @@ static int dwc3_probe(struct platform_device *pdev)
20342034

20352035
pm_runtime_put(dev);
20362036

2037+
dma_set_max_seg_size(dev, UINT_MAX);
2038+
20372039
return 0;
20382040

20392041
err_exit_debugfs:

0 commit comments

Comments
 (0)