[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20191219093954.163417-1-tfiga@chromium.org>
Date: Thu, 19 Dec 2019 18:39:54 +0900
From: Tomasz Figa <tfiga@...omium.org>
To: linux-usb@...r.kernel.org
Cc: Chunfeng Yun <chunfeng.yun@...iatek.com>,
Matthias Brugger <matthias.bgg@...il.com>,
Mathias Nyman <mathias.nyman@...el.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org,
Changqi Hu <Changqi.Hu@...iatek.com>,
Nicolas Boichat <drinkcat@...omium.org>,
Shik Chen <shik@...omium.org>, Tomasz Figa <tfiga@...omium.org>
Subject: [PATCH] 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 fda182d80a0b ("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 <tfiga@...omium.org>
---
drivers/usb/host/xhci-mtk.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c
index b18a6baef204a..bfbdb3ceed291 100644
--- a/drivers/usb/host/xhci-mtk.c
+++ b/drivers/usb/host/xhci-mtk.c
@@ -488,11 +488,6 @@ static int xhci_mtk_probe(struct platform_device *pdev)
goto disable_clk;
}
- /* Initialize dma_mask and coherent_dma_mask to 32-bits */
- ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
- if (ret)
- goto disable_clk;
-
hcd = usb_create_hcd(driver, dev, dev_name(dev));
if (!hcd) {
ret = -ENOMEM;
--
2.24.1.735.g03f4e72817-goog
Powered by blists - more mailing lists