Re: [PATCH 2/3] usb: dwc3: host: use build-in property instead of platform data

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

 



> > @@ -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



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux