]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc3: set the dma max_seg_size
authorRicardo Ribalda <ribalda@chromium.org>
Fri, 27 Oct 2023 11:28:20 +0000 (11:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Dec 2023 06:31:25 +0000 (07:31 +0100)
commit98f0e9b6276fb5db5258f12b77c8aa39bb411ae8
treee67f7734efb0a22d2459b5e56a6fe99823993e4b
parent1a3dcb1d811d19cb7fdb48f479b86d44755e3834
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>
drivers/usb/dwc3/core.c