]> git.baikalelectronics.ru Git - kernel.git/commit
net: mdio: setup of_node for the MDIO device
authorIoana Ciornei <ioana.ciornei@nxp.com>
Thu, 17 Jun 2021 12:29:03 +0000 (15:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jun 2021 19:06:52 +0000 (12:06 -0700)
commit70871783cea1c0fc1cd75fa03ce97a65ed1f1c38
treec32dc1217e2cd9e092d4f4f72463f31c7e7cbf1a
parent908ea2423e3b3971e1a82163be4980e4ea799cb9
net: mdio: setup of_node for the MDIO device

By mistake, the of_node of the MDIO device was not setup in the patch
linked below. As a consequence, any PHY driver that depends on the
of_node in its probe callback was not be able to successfully finish its
probe on a PHY, thus the Generic PHY driver was used instead.

Fix this by actually setting up the of_node.

Fixes: f7e5deac23b8 ("net: mdiobus: Introduce fwnode_mdiobus_register_phy()")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mdio/fwnode_mdio.c