net: dsa: microchip: really look for phy-mode in port nodes
authorHelmut Grohne <helmut.grohne@intenta.de>
Thu, 24 Sep 2020 08:37:47 +0000 (10:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2020 03:08:48 +0000 (20:08 -0700)
commit912aae27c6af6605eae967ab540c5e26bd76d421
tree4f3367fed2c4862fd4e4dcc0f916ba5fec83de63
parent38f7e1c0c43dd25b06513137bb6fd35476f9ec6d
net: dsa: microchip: really look for phy-mode in port nodes

The previous implementation failed to account for the "ports" node. The
actual port nodes are not child nodes of the switch node, but a "ports"
node sits in between.

Fixes: edecfa98f602 ("net: dsa: microchip: look for phy-mode in port nodes")
Signed-off-by: Helmut Grohne <helmut.grohne@intenta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz_common.c