> > @@ -47,14 +54,12 @@ int dwc3_host_init(struct dwc3 *dwc) > > goto err1; > > } > > > > - memset(&pdata, 0, sizeof(pdata)); > > - > > - pdata.usb3_lpm_capable = dwc->usb3_lpm_capable; > > - > > - ret = platform_device_add_data(xhci, &pdata, sizeof(pdata)); > > - if (ret) { > > - dev_err(dwc->dev, "couldn't add platform data to xHCI device\n"); > > - goto err1; > > + if (dwc->usb3_lpm_capable) { > > + ret = platform_device_add_properties(xhci, &dwc3_host_pset); > > + if (ret) { > > + dev_err(dwc->dev, "failed to add properties to xHCI\n"); > > + goto err1; > > + } > > This is very useful. So, I assume, it works with x86, ARM, ARC, etc ?? Yes, this is completely arch agnostic. Cheers, -- heikki -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html