> > Hi Michael, > > Thanks a lot for submitting a patch to fix issues in fw_devlink. I > think my other patch series[1] should fix this in a generic way for > all such cases where the phandle doesn't actually point to the > supplier struct device. The series itself has some bugs, but there are > "try this if it fixes it" code snippets in the thread that I need to > roll into a v2. > > Give it a shot if you can. I'll try to get back to the series soon. > > [1] - https://lore.kernel.org/lkml/20220810060040.321697-1-saravanak@xxxxxxxxxx/ > -Saravana Hi Saravana, It's definitely good to hear that someone is working on it already :D It looks like the "dangling consumers" function would probably fix the issue in Openwrt with fw_devlink. However, I noticed that in your series the function of_get_compat_node_parent() is still there. I'm not sure whether or not that could be simplified as well, since that is how I got the idea for this patch. I understand your goal is to remove the dependency on the "compatible" properties in total (at least for supplier devices). I'll try the series and let you know how it goes (unless your V2 is coming soon). FYI the device I test this on is Engenius EPG600 (MT7620A + QCA8337) -- Thanks, MCP