]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfda9cbb1f2180b023e2ed0afd2435511ca1271d2
treefb9fd3626798355b46b8c472a54dff36a90c3211
parent50c8b11c3cd86f1da1497184e0ab1a89ce39e425
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