dpaa2-eth: setup the of_node field of the device
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 21 May 2021 13:25:29 +0000 (16:25 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 May 2021 21:05:04 +0000 (14:05 -0700)
commitb193f2ed533f6ddffe947327dcf2e76d8beb72a4
treefb9fd3626798355b46b8c472a54dff36a90c3211
parentf07b300c815757b0aabb3a0520249df4a879b416
dpaa2-eth: setup the of_node field of the device

When the DPNI object is connected to a DPMAC, setup the of_node to point
to the DTS device node of that specific MAC. This enables other drivers,
for example the DSA subsystem, to find the net_device by its device
node.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h