Can't get if_txp(4) to attach to a 3CR990B-TXM NIC
Pyun YongHyeon
pyunyh at gmail.com
Fri Jun 15 03:53:16 UTC 2007
On Thu, Jun 14, 2007 at 10:42:20AM -0700, Freddie Cash wrote:
> On Thursday 14 June 2007 10:36 am, Freddie Cash wrote:
> > On Wednesday 13 June 2007 08:58 pm, Pyun YongHyeon wrote:
> > > Revert previous patch and apply attached patch again.
> > > Please give it spin and let me know result.
>
> Same error message as below, with the updated firmware downloaded from
> your site. :(
>
Hmm.... ATM the only reaminging one I can think of is additional delay
after reseting the hardware. Revert previous patch and try attached one.
--
Regards,
Pyun YongHyeon
-------------- next part --------------
Index: if_txp.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/txp/if_txp.c,v
retrieving revision 1.46
diff -u -r1.46 if_txp.c
--- if_txp.c 12 Jun 2007 04:33:21 -0000 1.46
+++ if_txp.c 15 Jun 2007 03:51:46 -0000
@@ -480,6 +480,9 @@
return (-1);
}
+ /* Give a 5ms to complete the reset. */
+ pause("txprst", hz / 200);
+
return (0);
}
@@ -548,7 +551,8 @@
DELAY(50);
}
if (r != STAT_WAITING_FOR_BOOT) {
- device_printf(sc->sc_dev, "not waiting for boot\n");
+ device_printf(sc->sc_dev, "%s: not waiting for boot, "
+ "status = 0x%08x\n", __func__, r);
return (-1);
}
@@ -1022,7 +1026,8 @@
}
if (r != STAT_WAITING_FOR_BOOT) {
- device_printf(sc->sc_dev, "not waiting for boot\n");
+ device_printf(sc->sc_dev, "%s: not waiting for boot, "
+ "status = 0x%08x\n", __func__, r);
return(ENXIO);
}
More information about the freebsd-stable
mailing list