Re: TG3 doesn't work in kernel 2.4.27

From: David S. Miller
Date: Tue Aug 17 2004 - 13:07:25 EST


On Tue, 17 Aug 2004 21:30:06 +0900
Tetsuo Handa <a5497108@xxxxxxxxxx> wrote:

> I compiled as a UP kernel but it wasn't the cause.
> Also, I patched the above fix on 2.4.27-rc4 and
> compiled as a UP kernel, but didn't work.

Just add this patch, it will fix the problem but it
is not the nicest fix. I'll work on a better one.

It just disables the new Sun code, and uses the old
fiber handling for 5704.

===== drivers/net/tg3.c 1.193 vs edited =====
--- 1.193/drivers/net/tg3.c 2004-08-16 18:01:30 -07:00
+++ edited/drivers/net/tg3.c 2004-08-16 18:46:58 -07:00
@@ -5415,13 +5398,13 @@
* is enabled.
*/
tw32_f(MAC_LOW_WMARK_MAX_RX_FRAME, 2);
-
+#if 0
if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704 &&
(tp->tg3_flags2 & TG3_FLG2_PHY_SERDES)) {
/* Use hardware link auto-negotiation */
tp->tg3_flags2 |= TG3_FLG2_HW_AUTONEG;
}
-
+#endif
err = tg3_setup_phy(tp, 1);
if (err)
return err;
-
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/