mirror of
https://github.com/torvalds/linux.git
synced 2024-12-19 01:23:20 +00:00
r8169: fix a bug in rtl8169_init_phy()
commit 54405cde76
(r8169: support control of advertising.)
introduced a bug in rtl8169_init_phy()
Reported-by: Piotr Hosowicz <piotr@hosowicz.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Oliver Neukum <oliver@neukum.org>
Cc: Francois Romieu <romieu@fr.zoreil.com>
Tested-by: Anca Emanuel <anca.emanuel@gmail.com>
Tested-by: Piotr Hosowicz <piotr@hosowicz.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
dadaa10b07
commit
b26fa4e027
@ -2685,9 +2685,9 @@ static void rtl8169_init_phy(struct net_device *dev, struct rtl8169_private *tp)
|
||||
rtl8169_set_speed(dev, AUTONEG_ENABLE, SPEED_1000, DUPLEX_FULL,
|
||||
ADVERTISED_10baseT_Half | ADVERTISED_10baseT_Full |
|
||||
ADVERTISED_100baseT_Half | ADVERTISED_100baseT_Full |
|
||||
tp->mii.supports_gmii ?
|
||||
(tp->mii.supports_gmii ?
|
||||
ADVERTISED_1000baseT_Half |
|
||||
ADVERTISED_1000baseT_Full : 0);
|
||||
ADVERTISED_1000baseT_Full : 0));
|
||||
|
||||
if (RTL_R8(PHYstatus) & TBI_Enable)
|
||||
netif_info(tp, link, dev, "TBI auto-negotiating\n");
|
||||
|
Loading…
Reference in New Issue
Block a user