LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Francois Romieu <romieu@fr.zoreil.com>
To: Bram <bram@linux.kernel.as.avontuur.org>
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: Possible bug in realtek 8169 ethernet driver
Date: Sun, 5 Aug 2007 23:35:58 +0200 [thread overview]
Message-ID: <20070805213557.GA21500@electric-eye.fr.zoreil.com> (raw)
In-Reply-To: <20070805155915.GM2761@avontuur.org>
Bram <bram@linux.kernel.as.avontuur.org> :
[...]
> The router attached to it indicates a 100mbit link. But that's about it.
> I cannot get any data over it. I can manually configure it to have an IP
> address and netmask, but it won't see anything on the local net. DHCP
> doesn't work either. Nothing out of the ordinary is logged in dmesg or
> anywhere else. An usb ethernet dongle on the system works just fine,
> ruling out (absent anyway) firewall or similar trouble. The device works
> well in windows XP.
Please try the patch below on top of 2.6.23-rc2 ?
> Relevant system specs:
> -Gigabyte GA-G33m-DS2R motherboard, with the integrated realtec nic
Ok, unknown beast.
[...]
> dmesg output:
>
> r8169 Gigabit Ethernet driver 2.2LK loaded
> ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 17 (level, low) -> IRQ 18
> PCI: Setting latency timer of device 0000:04:00.0 to 64
> eth0: RTL8168b/8111b at 0xf8854000, 00:1a:4d:44:a1:1f, IRQ 18
> ...
> r8169: eth2: link up
> r8169: eth2: link up
Do not hesitate to send a whole dmesg. More context to not hurt.
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index 8be51c4..fecedef 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -789,6 +789,12 @@ static int rtl8169_set_speed_xmii(struct net_device *dev,
auto_nego |= ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM;
+ if (tp->mac_version == RTL_GIGA_MAC_VER_12) {
+ /* Vendor specific (0x1f) and reserved (0x0e) MII registers. */
+ mdio_write(ioaddr, 0x1f, 0x0000);
+ mdio_write(ioaddr, 0x0e, 0x0000);
+ }
+
tp->phy_auto_nego_reg = auto_nego;
tp->phy_1000_ctrl_reg = giga_ctrl;
--
1.4.4.2
--
Ueimor
next prev parent reply other threads:[~2007-08-05 21:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-05 15:59 Bram
2007-08-05 21:35 ` Francois Romieu [this message]
2007-08-06 13:37 ` Bram
2007-08-06 21:06 ` Francois Romieu
2007-08-07 12:45 ` Bram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070805213557.GA21500@electric-eye.fr.zoreil.com \
--to=romieu@fr.zoreil.com \
--cc=bram@linux.kernel.as.avontuur.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--subject='Re: Possible bug in realtek 8169 ethernet driver' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).