Re: [BETA] First test release of Tigon3 driver

David S. Miller
2002-02-26T15:02:11Z

From: Thomas Langås <tlan@stud.ntnu.no>
Date: Tue, 26 Feb 2002 14:57:30 +0100

tg3.c:v0.90 (Feb 25, 2002)
tg3: Problem fetching invariants of chip, aborting.

Please apply this patch and tell me what it spits
out, thanks.

--- drivers/net/tg3.c.~1~ Mon Feb 25 17:50:17 2002
+++ drivers/net/tg3.c Tue Feb 26 06:58:39 2002
@@ -4424,12 +4424,20 @@
if (grc_misc_cfg != GRC_MISC_CFG_BOARD_ID_5700 &&
grc_misc_cfg != GRC_MISC_CFG_BOARD_ID_5701 &&
grc_misc_cfg != GRC_MISC_CFG_BOARD_ID_5703 &&
- grc_misc_cfg != GRC_MISC_CFG_BOARD_ID_5703S)
+ grc_misc_cfg != GRC_MISC_CFG_BOARD_ID_5703S) {
+ printk("DEBUG: Yikes grc_misc_cfg is %08x\n",
+ grc_misc_cfg);
return -ENODEV;
+ }

err = tg3_phy_probe(tp);
- if (!err)
+ if (err)
+ printk("DEBUG: phy_probe returns with %d\n", err);
+ if (!err) {
err = tg3_read_partno(tp);
+ if (err)
+ printk("DEBUG: read_partno returns with %d\n", err);
+ }

if (tp->phy_id == PHY_ID_SERDES) {
tp->tg3_flags &= ~TG3_FLAG_USE_PHY_IRQ;