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 walk up the tree from the
> netdev, allowing any parent to match against the sought after node.
>
> Signed-off-by: Tobias Waldekranz <tob...@waldekranz.com>
Humm, yes I tried to solve this differently before within the Freescale
FMAN driver before and it failed miserably, so I suppose this is as good
as it can be:
a1a50c8e4c241a505b7270e1a3c6e50d94e794b1 ("fsl/man: Inherit parent
device and of_node") later reverted with
48167c9ce0b91c068430345bf039c7be23fa2f3f ("fsl/fman: remove of_node")
Reviewed-by: Florian Fainelli <f.faine...@gmail.com>
--
Florian