Commit 6540722a authored by Ricardo Ribalda's avatar Ricardo Ribalda Committed by Zheng Zengkai
Browse files

usb: dwc3: set the dma max_seg_size

stable inclusion
from stable-v6.6.4
commit 6506e0228d3712881b3c405245c29d43d94356f1
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8N1WC

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6506e0228d3712881b3c405245c29d43d94356f1



--------------------------------

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: 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>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 1bede3ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment