/[linux-patches]/genpatches-2.6/tags/2.6.20-9/2400_r8169-link-speed.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.20-9/2400_r8169-link-speed.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 927 - (show annotations) (download)
Thu Apr 26 15:33:43 2007 UTC (7 years, 5 months ago) by phreak
File size: 1084 byte(s)
2.6.20-9 release
1 From: Francois Romieu <romieu@fr.zoreil.com>
2 Date: Thu, 8 Mar 2007 22:59:54 +0000 (+0100)
3 Subject: r8169: revert bogus BMCR reset
4 X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=9e0db8ef4a8c8fd6f3a506259975d7f8db962421
5
6 r8169: revert bogus BMCR reset
7
8 Added during bf793295e1090af84972750898bf8470df5e5419
9
10 The current code requests a reset but prohibits autoneg, 1000 Mb/s,
11 100 Mb/s and full duplex. The 8168 does not like it at all.
12
13 Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
14 Signed-off-by: Jeff Garzik <jeff@garzik.org>
15 ---
16
17 diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
18 index 15d954e..6693a30 100644
19 --- a/drivers/net/r8169.c
20 +++ b/drivers/net/r8169.c
21 @@ -572,8 +572,8 @@ static void rtl8169_xmii_reset_enable(void __iomem *ioaddr)
22 {
23 unsigned int val;
24
25 - mdio_write(ioaddr, MII_BMCR, BMCR_RESET);
26 - val = mdio_read(ioaddr, MII_BMCR);
27 + val = mdio_read(ioaddr, MII_BMCR) | BMCR_RESET;
28 + mdio_write(ioaddr, MII_BMCR, val & 0xffff);
29 }
30
31 static void rtl8169_check_link_status(struct net_device *dev,

  ViewVC Help
Powered by ViewVC 1.1.20