Skip to content

Commit

Permalink
usb: dwc3: set the dma max_seg_size
Browse files Browse the repository at this point in the history
commit 8bbae28 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: 72246da ("usb: Introduce DesignWare USB3 DRD Driver")
Reported-by: Zubin Mithra <zsm@chromium.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20231026-dwc3-v2-1-1d4fd5c3e067@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
ribalda authored and gregkh committed Dec 3, 2023
1 parent 92b9eca commit fc7b2fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/dwc3/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2036,6 +2036,8 @@ static int dwc3_probe(struct platform_device *pdev)

pm_runtime_put(dev);

dma_set_max_seg_size(dev, UINT_MAX);

return 0;

err5:
Expand Down

0 comments on commit fc7b2fe

Please sign in to comment.