]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c1355e3344db59cb7c27c5a1d4b133cd10ae9db
tree4f3367fed2c4862fd4e4dcc0f916ba5fec83de63
parentb1c4777950ad0154c33b3cf148df5db7951615ee
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: 48b44627acb9 ("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