Skip to content

Commit 5311f88

Browse files
tom3qgregkh
authored andcommitted
usb: mtk-xhci: Do not explicitly set the DMA mask
The mtk-xhci platform glue sets the DMA mask to 32 bits on its own, which was needed before commit fda182d ("usb: xhci: configure 32-bit DMA if the controller does not support 64-bit DMA"), but now it has no effect, because xhci_gen_setup() sets it up for us according to hardware capabilities. Remove the useless code. Signed-off-by: Tomasz Figa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c4a68b4 commit 5311f88

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/usb/host/xhci-mtk.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -488,11 +488,6 @@ static int xhci_mtk_probe(struct platform_device *pdev)
488488
goto disable_clk;
489489
}
490490

491-
/* Initialize dma_mask and coherent_dma_mask to 32-bits */
492-
ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
493-
if (ret)
494-
goto disable_clk;
495-
496491
hcd = usb_create_hcd(driver, dev, dev_name(dev));
497492
if (!hcd) {
498493
ret = -ENOMEM;

0 commit comments

Comments
 (0)