diff options
author | Andy Gospodarek <andy@greyhouse.net> | 2006-01-31 13:16:52 -0500 |
---|---|---|
committer | Francois Romieu <romieu@fr.zoreil.com> | 2006-01-31 13:16:52 -0500 |
commit | 726ecdcf688314aa8d4a4841f5f126c2cb4ecbf5 (patch) | |
tree | 60135898b5f8b584bcb4925b450b2f1b4b60ac38 | |
parent | 2371408c021f961b92fd2c42480cfddc9c6254f0 (diff) |
r8169: fix forced-mode link settings
Allow the r8169 driver to set devices to be full-duplex only when
auto-negotiate is disabled.
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
-rw-r--r-- | drivers/net/r8169.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index a81338b501fb..6e1018448eea 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c | |||
@@ -675,6 +675,9 @@ static int rtl8169_set_speed_xmii(struct net_device *dev, | |||
675 | 675 | ||
676 | if (duplex == DUPLEX_HALF) | 676 | if (duplex == DUPLEX_HALF) |
677 | auto_nego &= ~(PHY_Cap_10_Full | PHY_Cap_100_Full); | 677 | auto_nego &= ~(PHY_Cap_10_Full | PHY_Cap_100_Full); |
678 | |||
679 | if (duplex == DUPLEX_FULL) | ||
680 | auto_nego &= ~(PHY_Cap_10_Half | PHY_Cap_100_Half); | ||
678 | } | 681 | } |
679 | 682 | ||
680 | tp->phy_auto_nego_reg = auto_nego; | 683 | tp->phy_auto_nego_reg = auto_nego; |