Small 3c509 patch for alpha

Paul Gortmaker (gpg109@rsphy6.anu.edu.au)
Sun, 4 Aug 1996 19:05:23 +1000 (EST)


Hi,

Just got a mail from a linux-alpha groupie asking if the '509 would work
okay. Seeing as it is a typical PIO design, it should be fine I told
him, and also sent along this patch.

PS: Also have had an alpha user verify that SMC Ether-EZ cards work fine
in alpha. But as with most soft-config cards, you *have* to plug 'em
into a DOS box first to set media, i/o, IRQ, disable plug-n-pray, etc.
Perhaps we will have C source config progs for all these cards that can be
used for linux-x86 and linux-alpha someday. Don't hold your breath tho'....

Paul.

--- linux/drivers/net/3c509.c~ Sun Aug 4 18:42:16 1996
+++ linux/drivers/net/3c509.c Sun Aug 4 18:47:54 1996
@@ -430,7 +430,7 @@
/* Transmitter timeout, serious problems. */
if (dev->tbusy) {
int tickssofar = jiffies - dev->trans_start;
- if (tickssofar < 40)
+ if (tickssofar < 40*HZ/100)
return 1;
printk("%s: transmit timed out, Tx_status %2.2x status %4.4x "
"Tx FIFO room %d.\n",