]> git.itanic.dy.fi Git - linux-stable/commit
usb: xhci-mtk: set the dma max_seg_size
authorRicardo Ribalda <ribalda@chromium.org>
Wed, 19 Jul 2023 13:01:04 +0000 (13:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:24:11 +0000 (10:24 +0200)
commitcf8203ea19ef3917fdf97a72684061c84930e496
treee718e3e27e3526d273a47abf573b9f078f2c50ec
parentc0ebcc7e7fb1512cd2cc6100164b356c20feba63
usb: xhci-mtk: set the dma max_seg_size

commit 9fd10829a9eb482e192a845675ecc5480e0bfa10 upstream.

Allow devices to have dma operations beyond 64K, and avoid warnings such
as:

DMA-API: xhci-mtk 11200000.usb: mapping sg segment longer than device claims to support [len=98304] [max=65536]

Fixes: 0cbd4b34cda9 ("xhci: mediatek: support MTK xHCI host controller")
Cc: stable <stable@kernel.org>
Tested-by: Zubin Mithra <zsm@chromium.org>
Reported-by: Zubin Mithra <zsm@chromium.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://lore.kernel.org/r/20230628-mtk-usb-v2-1-c8c34eb9f229@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk.c