Skip to content

Commit

Permalink
r8169: fix forced-mode link settings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Gospodarek authored and Francois Romieu committed Jan 31, 2006
1 parent 2371408 commit 726ecdc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,9 @@ static int rtl8169_set_speed_xmii(struct net_device *dev,

if (duplex == DUPLEX_HALF)
auto_nego &= ~(PHY_Cap_10_Full | PHY_Cap_100_Full);

if (duplex == DUPLEX_FULL)
auto_nego &= ~(PHY_Cap_10_Half | PHY_Cap_100_Half);
}

tp->phy_auto_nego_reg = auto_nego;
Expand Down

0 comments on commit 726ecdc

Please sign in to comment.