]> 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)
commit895f27d5a0ff8c8485147afaf22601da5e934e75
treefb9fd3626798355b46b8c472a54dff36a90c3211
parentb510857400bfde9ce8628036e482a1aa12ffc41b
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