[PATCH 4/6] usb: dwc3: of-simple: initialize dma_mask and coherent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This will make sure users of dwc3-of-simple will
have proper DMA bits initialized for dwc3 core.

Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx>
---
 drivers/usb/dwc3/dwc3-of-simple.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c
index 974335377d9f..b33c145a7e29 100644
--- a/drivers/usb/dwc3/dwc3-of-simple.c
+++ b/drivers/usb/dwc3/dwc3-of-simple.c
@@ -62,6 +62,7 @@ static int dwc3_of_simple_probe(struct platform_device *pdev)
 		return -ENOMEM;
 
 	simple->dev = dev;
+	dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(32));
 
 	for (i = 0; i < simple->num_clocks; i++) {
 		struct clk	*clk;
-- 
2.7.0

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux