Re: TG3 doesn't work in kernel 2.4.27 (David S. Miller)

From: David S. Miller
Date: Mon Aug 16 2004 - 16:43:59 EST


On Mon, 16 Aug 2004 20:51:03 +0900
Tetsuo Handa <a5497108@xxxxxxxxxx> wrote:

> From 2.4.26 till 2.4.27-rc3 were all OK.
> This trouble happens with 2.4.27-rc4 and later.

It's Sun's buggy 5704 Fiber auto-negotiation changes.

Here is a hacky possible fix, can you try it?

===== drivers/net/tg3.c 1.190 vs edited =====
--- 1.190/drivers/net/tg3.c 2004-07-21 14:14:20 -07:00
+++ edited/drivers/net/tg3.c 2004-08-16 14:24:53 -07:00
@@ -5266,6 +5266,8 @@
tw32_f(MAC_LOW_WMARK_MAX_RX_FRAME, 2);

if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704 &&
+ !(tp->pci_chip_rev_id == CHIPREV_ID_5704_A0 ||
+ tp->pci_chip_rev_id == CHIPREV_ID_5704_A1) &&
tp->phy_id == PHY_ID_SERDES) {
/* Enable hardware link auto-negotiation */
u32 digctrl, txctrl;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/