--- zzzz-none-000/linux-4.4.271/drivers/usb/dwc3/host.c 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/drivers/usb/dwc3/host.c 2023-04-19 10:22:29.000000000 +0000 @@ -32,6 +32,7 @@ return -ENOMEM; } + arch_setup_dma_ops(&xhci->dev, 0, 0, NULL, 0); dma_set_coherent_mask(&xhci->dev, dwc->dev->coherent_dma_mask); xhci->dev.parent = dwc->dev; @@ -51,6 +52,10 @@ pdata.usb3_lpm_capable = dwc->usb3_lpm_capable; + pdata.usb2_susphy_quirk = dwc->enable_usb2susphy_quirk; + pdata.usb3_dev_reset_quirk = dwc->usb3_dev_reset_quirk; + pdata.susphy = &dwc->susphy; + ret = platform_device_add_data(xhci, &pdata, sizeof(pdata)); if (ret) { dev_err(dwc->dev, "couldn't add platform data to xHCI device\n"); @@ -78,6 +83,7 @@ platform_device_put(xhci); return ret; } +EXPORT_SYMBOL(dwc3_host_init); void dwc3_host_exit(struct dwc3 *dwc) { @@ -87,3 +93,4 @@ dev_name(&dwc->xhci->dev)); platform_device_unregister(dwc->xhci); } +EXPORT_SYMBOL(dwc3_host_exit);