Skip to content

Commit 9ff74f2

Browse files
viviendavem330
authored andcommitted
net: dsa: mv88e6xxx: specify ageing time limits
Now that DSA has ageing time limits, specify them when registering a switch so that out-of-range values are handled correctly by the core. Signed-off-by: Vivien Didelot <[email protected]> Reported-by: Jason Cobham <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0f3da6a commit 9ff74f2

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/dsa/mv88e6xxx

1 file changed

+2
-0
lines changed

drivers/net/dsa/mv88e6xxx/chip.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4253,6 +4253,8 @@ static int mv88e6xxx_register_switch(struct mv88e6xxx_chip *chip)
42534253

42544254
ds->priv = chip;
42554255
ds->ops = &mv88e6xxx_switch_ops;
4256+
ds->ageing_time_min = chip->info->age_time_coeff;
4257+
ds->ageing_time_max = chip->info->age_time_coeff * U8_MAX;
42564258

42574259
dev_set_drvdata(dev, ds);
42584260

0 commit comments

Comments
 (0)