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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Apr 2020 07:09:55 +0000 (09:09 +0200)
commit2bc1fe7c83e7d02ef415d2879e5cf7848f4393c7
tree4364c2cb2ec4accfec69eddc0d2b882a8c522c2f
parent6372215ba4c68d8a1f7c8f340af7ecf8130c6249
net: macb: Fix handling of fixed-link node

[ Upstream commit 79540d133ed6f65a37dacb54b7a704cc8a24c52d ]

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: 7897b071ac3b ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/cadence/macb_main.c