Skip to content

Commit ea2d3be

Browse files
yangflkuba-moo
authored andcommitted
net: dsa: yt921x: Set ageing_time_min/ageing_time_max
The ageing time is in 5s step, ranging from 1 step to 0xffff steps, so add appropriate attributes. Signed-off-by: David Yang <mmyangfl@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/20251129042137.3034032-1-mmyangfl@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 09339d0 commit ea2d3be

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/net/dsa/yt921x.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2855,6 +2855,8 @@ static int yt921x_mdio_probe(struct mdio_device *mdiodev)
28552855
ds->assisted_learning_on_cpu_port = true;
28562856
ds->priv = priv;
28572857
ds->ops = &yt921x_dsa_switch_ops;
2858+
ds->ageing_time_min = 1 * 5000;
2859+
ds->ageing_time_max = U16_MAX * 5000;
28582860
ds->phylink_mac_ops = &yt921x_phylink_mac_ops;
28592861
ds->num_ports = YT921X_PORT_NUM;
28602862

0 commit comments

Comments
 (0)