From: Charlie Paul <[email protected]>

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 <[email protected]>
---
 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

-- 
_______________________________________________
linux-yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to