On Fri, Feb 16, 2018 at 11:55 PM, Thinh Nguyen <Thinh.Nguyen@xxxxxxxxxxxx> wrote: > Add the ability to add device properties dynamically. Currently, device > properties are added to platform device using > platform_device_add_properties(). However, this function does not allow > adding properties incrementally. It is useful to have this ability when > the driver needs to set common device properties across different HW I'm not sure it's useful anyhow. > or > if IP and FPGA validation test different configurations for different > HW. Shouldn't be a separate stuff for FPGA exclusively? > To address this issue, update dwc3_pci to store device properties to > an array and dynamically manage them here. > > Introduce two new functions to do so: > * dwc3_pci_add_one_property() - this function adds one property to > dwc->properties array and increase its size as needed > * dwc3_pci_add_properties() - this function takes a null terminated > array of device properties and add them to dwc->properties So, why you can't use ACPI / DT here? -- With Best Regards, Andy Shevchenko -- 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