generic: 5.15: refresh pending patch
[openwrt/staging/jow.git] / target / linux / generic / pending-5.15 / 768-net-dsa-mv88e6xxx-Request-assisted-learning-on-CPU-port.patch
index 9247401140cbfe05803e2005564adffe80ee925a..8a718a02f213ec0c893d81d88970748cc740890c 100644 (file)
@@ -17,11 +17,11 @@ Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
 
 --- a/drivers/net/dsa/mv88e6xxx/chip.c
 +++ b/drivers/net/dsa/mv88e6xxx/chip.c
-@@ -5436,6 +5436,7 @@ static int mv88e6xxx_register_switch(str
+@@ -6319,6 +6319,7 @@ static int mv88e6xxx_register_switch(str
        ds->ops = &mv88e6xxx_switch_ops;
        ds->ageing_time_min = chip->info->age_time_coeff;
        ds->ageing_time_max = chip->info->age_time_coeff * U8_MAX;
 +      ds->assisted_learning_on_cpu_port = true;
  
-       dev_set_drvdata(dev, ds);
+       /* Some chips support up to 32, but that requires enabling the
+        * 5-bit port mode, which we do not support. 640k^W16 ought to