[linux-yocto] [PATCH 15/17] drivers/usb/dwc3: Initialize dma for axxia dwc3

Daniel Dragomir daniel.dragomir at windriver.com
Tue May 16 11:39:07 PDT 2017


From: Charlie Paul <cpaul.windriver at gmail.com>

The coherency bit needs to be set for USB ports on the
axxia boards to initialize. In 4.9 the initialization
of the DMA for USB changed and this patch properly
initializes the USB.

Signed-off-by: Charlie Paul <cpaul.windriver at gmail.com>
---
 drivers/usb/dwc3/dwc3-axxia.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/dwc3/dwc3-axxia.c b/drivers/usb/dwc3/dwc3-axxia.c
index c2ac051..d47c46e 100644
--- a/drivers/usb/dwc3/dwc3-axxia.c
+++ b/drivers/usb/dwc3/dwc3-axxia.c
@@ -83,7 +83,7 @@ void
 arch_setup_pdev_archdata(struct platform_device *pdev)
 {
 	if (strncmp(pdev->name, "xhci-hcd", strlen("xhci-hcd")) == 0)
-		pdev->dev.archdata.dma_coherent = 1;
+		arch_setup_dma_ops(&pdev->dev, 0, 0, NULL, 1);
 }
 
 static const struct of_device_id adwc3_of_match[] = {
-- 
2.7.4



More information about the linux-yocto mailing list