net: dsa: microchip: look for phy-mode in port nodes
authorHelmut Grohne <helmut.grohne@intenta.de>
Tue, 8 Sep 2020 08:01:38 +0000 (10:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2020 19:32:37 +0000 (12:32 -0700)
commitedecfa98f602a597666e3c5cab2677ada38d93c5
tree6348d2ca0afe83c6abe538e7566b1260fec60873
parentf612eb76f349919128d5f5cc4e8cc4251a16bf30
net: dsa: microchip: look for phy-mode in port nodes

Documentation/devicetree/bindings/net/dsa/dsa.txt says that the phy-mode
property should be specified on port nodes. However, the microchip
drivers read it from the switch node.

Let the driver use the per-port property and fall back to the old
location with a warning.

Fix in-tree users.

Signed-off-by: Helmut Grohne <helmut.grohne@intenta.de>
Link: https://lore.kernel.org/netdev/20200617082235.GA1523@laureti-dev/
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm/boot/dts/at91-sama5d2_icp.dts
drivers/net/dsa/microchip/ksz8795.c
drivers/net/dsa/microchip/ksz9477.c
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_common.h