On Sun, Sep 14, 2025 at 4:34 PM Andy Shevchenko andy.shevchenko@gmail.com wrote:
On Sat, Sep 13, 2025 at 9:43 PM Hans de Goede hansg@kernel.org wrote:
...
the long term one should be in a full redesigning of the fwnode concept in the kernel. The limitation of the linked list to two sooner or later strikes us. Besides that, the list of fwnodes conceptually is not property of the fwnode itself. The struct device may have struct list_head swnodes; besides possible other users. In particular this also will allow to have OF and ACPI nodes along with swnodes. You can say "are you crazy?", but look at the DSA development and other interesting PCI devices that are basically computers-as-a-card. The floating patch series is to enable OF enumeration for the devices on that type of cards even on ACPI based platforms. Which make above mentioned use-case not so theoretical.
FWIW, that's why I for more than a year require people to use dev_fwnode() and dev_of_node() (and similar) APIs instead of dereferencing them directly in order to make less churn in case of the above ever happens.