Skip to contentSkip to conversation

usb: chipidea: usb2: delete the redundant setting default DMA mask code

PATCH RESEND Applied Jisheng Zhang 2 participants 2 messages Jan 23, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 usb: chipidea: usb2: delete the redundant setting default DMA mask code

Similar as commit 2b2fe36def08 ("usb: chipidea: imx: delete the redundant setting default DMA mask code"), the ci_hdrc_usb2 platform device is also created by device tree, the default DMA mask should be already set by of_dma_configure when the device are created. So delete the redundant code at driver.

---
 drivers/usb/chipidea/ci_hdrc_usb2.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/usb/chipidea/ci_hdrc_usb2.c +0 -4
index 4456d2cf80ff..d162cc0bb8ce 100644
@@ -74,10 +74,6 @@ static int ci_hdrc_usb2_probe(struct platform_device *pdev)
 		}
 	}
 
-	ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
-	if (ret)
-		goto clk_err;
-
 	ci_pdata->name = dev_name(dev);
 
 	priv->ci_pdev = ci_hdrc_add_device(dev, pdev->resource,
Signature · 1 line
2.11.0
Applied
#1 lore raw
Quoted 16 lines · Jisheng Zhang

Similar as commit 2b2fe36def08 ("usb: chipidea: imx: delete the redundant setting default DMA mask code"), the ci_hdrc_usb2 platform device is also created by device tree, the default DMA mask should be already set by of_dma_configure when the device are created. So delete the redundant code at driver.

---
 drivers/usb/chipidea/ci_hdrc_usb2.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/usb/chipidea/ci_hdrc_usb2.c +0 -0
index 4456d2cf80ff..d162cc0bb8ce 100644

drivers/usb/chipidea/ci_hdrc_usb2.c static int ci_hdrc_usb2_probe(struct platform_device *pdev) · line 79

Quoted 10 lines
drivers/usb/chipidea/ci_hdrc_usb2.c +0 -4
@@ -74,10 +74,6 @@ static int ci_hdrc_usb2_probe(struct platform_device *pdev)
 		}
 	}
 
-	ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
-	if (ret)
-		goto clk_err;
-
 	ci_pdata->name = dev_name(dev);
 
 	priv->ci_pdev = ci_hdrc_add_device(dev, pdev->resource,

Applied, thanks.

Signature · 2 lines
Best Regards,
Peter Chen