]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: Fix handling of fixed-link node
authorCodrin Ciubotariu <codrin.ciubotariu@microchip.com>
Tue, 31 Mar 2020 09:39:35 +0000 (12:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2020 17:06:27 +0000 (10:06 -0700)
commit6a071672e8c5464cb6fc9a995a83fdfe1e7cde32
tree10240b8d539319d2aaf1efd79bfb1a4d19c3ae91
parentbc5cfbd7993acdb394d4677bf132e6af6ff3899a
net: macb: Fix handling of fixed-link node

fixed-link nodes are treated as PHY nodes by of_mdiobus_child_is_phy().
We must check if the interface is a fixed-link before looking up for PHY
nodes.

Fixes: b933f9aff890 ("net: macb: convert to phylink")
Tested-by: Cristian Birsan <cristian.birsan@microchip.com>
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c