usb: dwc3: Do not set dma coherent mask
The dma mask is correctly set up by the DT probe function, no need to override it any more. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Sriram Dash <sriram.dash@nxp.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
d64ff406e5
commit
8c9f2de459
|
@ -20,7 +20,6 @@
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/dma-mapping.h>
|
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/usb/otg.h>
|
#include <linux/usb/otg.h>
|
||||||
#include <linux/usb/usb_phy_generic.h>
|
#include <linux/usb/usb_phy_generic.h>
|
||||||
|
@ -117,15 +116,6 @@ static int dwc3_exynos_probe(struct platform_device *pdev)
|
||||||
if (!exynos)
|
if (!exynos)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
/*
|
|
||||||
* Right now device-tree probed devices don't get dma_mask set.
|
|
||||||
* Since shared usb code relies on it, set it here for now.
|
|
||||||
* Once we move to full device tree support this will vanish off.
|
|
||||||
*/
|
|
||||||
ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(32));
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
platform_set_drvdata(pdev, exynos);
|
platform_set_drvdata(pdev, exynos);
|
||||||
|
|
||||||
exynos->dev = dev;
|
exynos->dev = dev;
|
||||||
|
|
|
@ -218,7 +218,6 @@ static int st_dwc3_probe(struct platform_device *pdev)
|
||||||
if (IS_ERR(regmap))
|
if (IS_ERR(regmap))
|
||||||
return PTR_ERR(regmap);
|
return PTR_ERR(regmap);
|
||||||
|
|
||||||
dma_set_coherent_mask(dev, dev->coherent_dma_mask);
|
|
||||||
dwc3_data->dev = dev;
|
dwc3_data->dev = dev;
|
||||||
dwc3_data->regmap = regmap;
|
dwc3_data->regmap = regmap;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue