aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/ocelot/felix.h
diff options
context:
space:
mode:
authorColin Foster <colin.foster@in-advantage.com>2023-03-17 11:54:13 -0700
committerDavid S. Miller <davem@davemloft.net>2023-03-20 09:08:48 +0000
commit544435c9346a34f90a1ed9f19fc40126ba6d4aaa (patch)
treec3ac8adb6c3cf3d37e54348ecacb0d6f05e52aeb /drivers/net/dsa/ocelot/felix.h
parentnet: dsa: felix: attempt to initialize internal hsio plls (diff)
downloadlinux-544435c9346a34f90a1ed9f19fc40126ba6d4aaa.tar.xz
linux-544435c9346a34f90a1ed9f19fc40126ba6d4aaa.zip
net: dsa: felix: allow configurable phylink_mac_config
If a user of the Felix driver has a port running in SGMII / QSGMII mode, it will need to utilize phylink_mac_config(). Add this configurability. 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.h')
-rw-r--r--drivers/net/dsa/ocelot/felix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/dsa/ocelot/felix.h b/drivers/net/dsa/ocelot/felix.h
index d5d0b30c0b75..98771273512b 100644
--- a/drivers/net/dsa/ocelot/felix.h
+++ b/drivers/net/dsa/ocelot/felix.h
@@ -58,6 +58,9 @@ struct felix_info {
void (*tas_guard_bands_update)(struct ocelot *ocelot, int port);
void (*port_sched_speed_set)(struct ocelot *ocelot, int port,
u32 speed);
+ void (*phylink_mac_config)(struct ocelot *ocelot, int port,
+ unsigned int mode,
+ const struct phylink_link_state *state);
};
/* Methods for initializing the hardware resources specific to a tagging