Skip to content

Commit 9fd1082

Browse files
ribaldagregkh
authored andcommitted
usb: xhci-mtk: set the dma max_seg_size
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: 0cbd4b3 ("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>
1 parent 5711155 commit 9fd1082

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/host/xhci-mtk.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,7 @@ static int xhci_mtk_probe(struct platform_device *pdev)
586586
}
587587

588588
device_init_wakeup(dev, true);
589+
dma_set_max_seg_size(dev, UINT_MAX);
589590

590591
xhci = hcd_to_xhci(hcd);
591592
xhci->main_hcd = hcd;

0 commit comments

Comments
 (0)