diff options
author | Colin Foster <colin.foster@in-advantage.com> | 2023-03-17 11:54:14 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-03-20 09:08:48 +0000 |
commit | 6865ecee385bc91d47e6a1801fdf70732e33a6fd (patch) | |
tree | 11d23de5bb1df57bb10b987d97cf598072cc20d7 /drivers/net/dsa/ocelot/felix.c | |
parent | 544435c9346a34f90a1ed9f19fc40126ba6d4aaa (diff) | |
download | linux-6865ecee385bc91d47e6a1801fdf70732e33a6fd.tar.gz linux-6865ecee385bc91d47e6a1801fdf70732e33a6fd.tar.bz2 linux-6865ecee385bc91d47e6a1801fdf70732e33a6fd.zip |
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>
Diffstat (limited to 'drivers/net/dsa/ocelot/felix.c')
-rw-r--r-- | drivers/net/dsa/ocelot/felix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/dsa/ocelot/felix.c b/drivers/net/dsa/ocelot/felix.c index 845068bcbeb4..6dcebcfd71e7 100644 --- a/drivers/net/dsa/ocelot/felix.c +++ b/drivers/net/dsa/ocelot/felix.c @@ -1585,6 +1585,10 @@ static int felix_setup(struct dsa_switch *ds) dsa_switch_for_each_available_port(dp, ds) { ocelot_init_port(ocelot, dp->index); + if (felix->info->configure_serdes) + felix->info->configure_serdes(ocelot, dp->index, + dp->dn); + /* Set the default QoS Classification based on PCP and DEI * bits of vlan tag. */ |