Index: linux-2.6.23-gentoo/drivers/net/forcedeth.c =================================================================== --- linux-2.6.23-gentoo.orig/drivers/net/forcedeth.c +++ linux-2.6.23-gentoo/drivers/net/forcedeth.c @@ -153,7 +153,7 @@ #include #include -#if 0 +#if 1 #define dprintk printk #else #define dprintk(x...) do { } while (0) @@ -5278,8 +5278,10 @@ static int __devinit nv_probe(struct pci np->mac_in_use = readl(base + NvRegTransmitterControl) & NVREG_XMITCTL_MGMT_ST; dprintk(KERN_INFO "%s: mgmt unit is running. mac in use %x.\n", pci_name(pci_dev), np->mac_in_use); for (i = 0; i < 5000; i++) { + dprintk(KERN_INFO "in loop, i=%d\n", i); msleep(1); if (nv_mgmt_acquire_sema(dev)) { + dprintk(KERN_INFO "acquired sema\n"); /* management unit setup the phy already? */ if ((readl(base + NvRegTransmitterControl) & NVREG_XMITCTL_SYNC_MASK) == NVREG_XMITCTL_SYNC_PHY_INIT) { @@ -5287,6 +5289,7 @@ static int __devinit nv_probe(struct pci phyinitialized = 1; dprintk(KERN_INFO "%s: Phy already initialized by mgmt unit.\n", pci_name(pci_dev)); } else { + dprintk(KERN_INFO "we need to init phy\n"); /* we need to init the phy */ } break; @@ -5295,10 +5298,12 @@ static int __devinit nv_probe(struct pci } } + dprintk(KERN_INFO "now look for phy\n"); /* find a suitable phy */ for (i = 1; i <= 32; i++) { int id1, id2; int phyaddr = i & 0x1F; + dprintk(KERN_INFO "in phy loop, i=%d\n", i); spin_lock_irq(&np->lock); id1 = mii_rw(dev, phyaddr, MII_PHYSID1, MII_READ);