Hi! > > > @@ -84,7 +85,12 @@ enum usb_role usb_role_switch_get_role(struct > > > usb_role_switch *sw) } > > EXPORT_SYMBOL_GPL(usb_role_switch_get_role); > > > > > > -static int __switch_match(struct device *dev, const void *name) > > > +static int switch_fwnode_match(struct device *dev, const void > > > +*fwnode) { > > > + return dev_fwnode(dev) == fwnode; > > > +} > > > + > > > +static int switch_name_match(struct device *dev, const void *name) > > > { > > > return !strcmp((const char *)name, dev_name(dev)); } > > > > This renames __switch_match -> switch_name_match. That is welcome > > cleanup for mainline, but not quite neccessary change here. As the function > > is static and local to the file, we can live with that, but I hope you have not > > had to do extra effort to backport it :-). > > Unfortunately, this patch is necessary for the following patches as it introduces > the necessary fwnode. Generally, yes, I had to find the minimum set of changes, > not to modify too much the USB core code. I opted for complete backport > of the upstream patches, not to chop them off and also not to add much code on > top of them (only some minor checkpatch fixes). I think it is better not to increase > the delta between linux-cip and upstream too much. > > But, looking retrospectively, this might not be the best strategy. Just to be clear, I believe we can use this patch as-is. No need to change it. Best regards, Pavel -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany