summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/ocelot/ocelot_ext.c
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2024-05-28 16:15:42 +0100
committerJakub Kicinski <kuba@kernel.org>2024-05-29 18:41:52 -0700
commitef0e51dccdc43fd849720589c3214d97b2fd453f (patch)
treef9e000ed0557f797a717b92aa6a4c352ff6e5689 /drivers/net/dsa/ocelot/ocelot_ext.c
parentbbb31b7ae14594aa2a7e74923ee38f312404ad66 (diff)
net: dsa: felix: provide own phylink MAC operations
Convert felix to provide its own phylink MAC operations, thus avoiding the shim layer in DSA's port.c. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com> Link: https://lore.kernel.org/r/E1sByYA-00EM0y-Jn@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/ocelot/ocelot_ext.c')
-rw-r--r--drivers/net/dsa/ocelot/ocelot_ext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/ocelot/ocelot_ext.c b/drivers/net/dsa/ocelot/ocelot_ext.c
index 22187d831c4b..a8927dc7aca4 100644
--- a/drivers/net/dsa/ocelot/ocelot_ext.c
+++ b/drivers/net/dsa/ocelot/ocelot_ext.c
@@ -96,6 +96,7 @@ static int ocelot_ext_probe(struct platform_device *pdev)
ds->num_tx_queues = felix->info->num_tx_queues;
ds->ops = &felix_switch_ops;
+ ds->phylink_mac_ops = &felix_phylink_mac_ops;
ds->priv = ocelot;
felix->ds = ds;
felix->tag_proto = DSA_TAG_PROTO_OCELOT;