mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-03 09:20:14 -05:00
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 <[email protected]> Signed-off-by: Francois Romieu <[email protected]>
This commit is contained in:
parent
2371408c02
commit
726ecdcf68
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue