Skip to content

Commit

Permalink
net: phy: sfp-bus: set 100baseT modes
Browse files Browse the repository at this point in the history
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
  • Loading branch information
atenart committed Apr 1, 2020
1 parent 5458274 commit f994f48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/phy/sfp-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
phylink_set(modes, 1000baseT_Half);
phylink_set(modes, 1000baseT_Full);
}
if (id->base.e100_base_fx ||
id->base.e100_base_lx ||
br_max == 100) {
phylink_set(modes, 100baseT_Half);
phylink_set(modes, 100baseT_Full);
}

/* 1000Base-PX or 1000Base-BX10 */
if ((id->base.e_base_px || id->base.e_base_bx10) &&
Expand Down

0 comments on commit f994f48

Please sign in to comment.