|
@@ -749,6 +749,12 @@ static int mv88e6xxx_port_setup_mac(struct mv88e6xxx_chip *chip, int port,
|
|
goto restore_link;
|
|
goto restore_link;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (chip->info->ops->port_set_cmode) {
|
|
|
|
+ err = chip->info->ops->port_set_cmode(chip, port, mode);
|
|
|
|
+ if (err && err != -EOPNOTSUPP)
|
|
|
|
+ goto restore_link;
|
|
|
|
+ }
|
|
|
|
+
|
|
err = 0;
|
|
err = 0;
|
|
restore_link:
|
|
restore_link:
|
|
if (chip->info->ops->port_set_link(chip, port, link))
|
|
if (chip->info->ops->port_set_link(chip, port, link))
|
|
@@ -3520,6 +3526,7 @@ static const struct mv88e6xxx_ops mv88e6290_ops = {
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
.port_set_egress_unknowns = mv88e6351_port_set_egress_unknowns,
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
.port_set_ether_type = mv88e6351_port_set_ether_type,
|
|
.port_pause_config = mv88e6390_port_pause_config,
|
|
.port_pause_config = mv88e6390_port_pause_config,
|
|
|
|
+ .port_set_cmode = mv88e6390x_port_set_cmode,
|
|
.stats_snapshot = mv88e6390_g1_stats_snapshot,
|
|
.stats_snapshot = mv88e6390_g1_stats_snapshot,
|
|
.stats_set_histogram = mv88e6390_g1_stats_set_histogram,
|
|
.stats_set_histogram = mv88e6390_g1_stats_set_histogram,
|
|
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
|
|
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
|
|
@@ -3738,6 +3745,7 @@ static const struct mv88e6xxx_ops mv88e6390_ops = {
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
.port_jumbo_config = mv88e6165_port_jumbo_config,
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
.port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting,
|
|
.port_pause_config = mv88e6390_port_pause_config,
|
|
.port_pause_config = mv88e6390_port_pause_config,
|
|
|
|
+ .port_set_cmode = mv88e6390x_port_set_cmode,
|
|
.stats_snapshot = mv88e6390_g1_stats_snapshot,
|
|
.stats_snapshot = mv88e6390_g1_stats_snapshot,
|
|
.stats_set_histogram = mv88e6390_g1_stats_set_histogram,
|
|
.stats_set_histogram = mv88e6390_g1_stats_set_histogram,
|
|
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
|
|
.stats_get_sset_count = mv88e6320_stats_get_sset_count,
|