diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2023-10-27 11:28:20 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-12-03 07:33:10 +0100 |
commit | 6506e0228d3712881b3c405245c29d43d94356f1 (patch) | |
tree | cb91a3158ebcb8c63c7ac9a72d080c65aece0a42 | |
parent | 7985c3d7e879980127fb05620fb04fd4c9830ee2 (diff) | |
download | linux-stable-6506e0228d3712881b3c405245c29d43d94356f1.tar.gz linux-stable-6506e0228d3712881b3c405245c29d43d94356f1.tar.bz2 linux-stable-6506e0228d3712881b3c405245c29d43d94356f1.zip |
usb: dwc3: set the dma max_seg_size
commit 8bbae288a85abed6a1cf7d185d8b9dc2f5dcb12c 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: 72246da40f37 ("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>
-rw-r--r-- | drivers/usb/dwc3/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index d25490965b27..8d5af9ccb602 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -2006,6 +2006,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: |