diff options
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/chip.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 966295378d44..bd388af207c3 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -761,6 +761,18 @@ static void mv88e6xxx_mac_link_up(struct dsa_switch *ds, int port, if (err) goto error; + /* The link parameters passed in are the media side parameters. + * If in RXAUI, XAUI or 10GBASE-R with a rate matching PHY, we + * need to operate our link at 10G. Only full duplex is + * supported at this speed. + */ + if (interface == PHY_INTERFACE_MODE_RXAUI || + interface == PHY_INTERFACE_MODE_XAUI || + interface == PHY_INTERFACE_MODE_10GBASER) { + speed = SPEED_10000; + duplex = DUPLEX_FULL; + } + if (ops->port_set_speed_duplex) { err = ops->port_set_speed_duplex(chip, port, speed, duplex); |