Home
last modified time | relevance | path

Searched hist:"2 e186a2c" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/core/
H A Dnet-sysfs.c2e186a2c Fri May 15 04:52:52 CDT 2020 Tobias Waldekranz <tobias@waldekranz.com> net: core: recursively find netdev by device node

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 match against the sought after node.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>