net: dsa: felix: allow serdes configuration for dsa ports
authorColin Foster <colin.foster@in-advantage.com>
Fri, 17 Mar 2023 18:54:14 +0000 (11:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Mar 2023 09:08:48 +0000 (09:08 +0000)
commit6865ecee385bc91d47e6a1801fdf70732e33a6fd
tree11d23de5bb1df57bb10b987d97cf598072cc20d7
parent544435c9346a34f90a1ed9f19fc40126ba6d4aaa
net: dsa: felix: allow serdes configuration for dsa ports

Ports for Ocelot devices (VSC7511, VSC7512, VSC7513 and VSC7514) support
external phys. When external phys are used, additional configuration on
each port is required to enable QSGMII mode and set external phy modes.

Add a configurable hook into these routines, so the external ports can be
used.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix.c
drivers/net/dsa/ocelot/felix.h