Re: [PATCH net-next] net: core: recursively find netdev by device node

2020-05-15 Thread David Miller
From: Tobias Waldekranz Date: Fri, 15 May 2020 11:52:52 +0200 > The assumption that a device node is associated either with the > netdev's device, or the parent of that device, does not hold for all > drivers. E.g. Freescale's DPAA has two layers of platform devices > above the netdev. Instead, r

Re: [PATCH net-next] net: core: recursively find netdev by device node

2020-05-15 Thread Florian Fainelli
On 5/15/2020 2:52 AM, Tobias Waldekranz wrote: > The assumption that a device node is associated either with the > netdev's device, or the parent of that device, does not hold for all > drivers. E.g. Freescale's DPAA has two layers of platform devices > above the netdev. Instead, recursively wal

[PATCH net-next] net: core: recursively find netdev by device node

2020-05-15 Thread Tobias Waldekranz
The assumption that a device node is associated either with the netdev's device, or the parent of that device, does not hold for all drivers. E.g. Freescale's DPAA has two layers of platform devices above the netdev. Instead, recursively walk up the tree from the netdev, allowing any parent to matc