From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199704181606.LAA28627@atheist.tamu.edu> Date: Fri, 18 Apr 1997 11:06:32 -0500 (CDT) From: SubGenius Subject: Re: 3c503 problems with 2.0.27 -----BEGIN PGP SIGNED MESSAGE----- Your Humble Narrator wrote: > I'm having some trouble getting a 3c503/16 card working with my > alpha (more complete system information below). Problem solved. This is the patch suggested by Paul Gortmaker . Note: Since this is message is PGP signed, all lines beginning with `-' are quoted with `- ' prepended. Edit these out accordingly (the `- 's, not the lines, mind you) prior to attempting to apply the patch. Yours etc., SubGenius - --- linux/drivers/net/8390.c~ Sun Apr 13 11:31:45 1997 +++ linux/drivers/net/8390.c Fri Apr 18 18:58:15 1997 @@ -50,6 +50,7 @@ #include #include #include +#include #include #include #include @@ -602,8 +603,7 @@ */ static void ei_rx_overrun(struct device *dev) { - - int e8390_base = dev->base_addr; - - unsigned long wait_start_time; + int i, e8390_base = dev->base_addr; unsigned char was_txing, must_resend = 0; struct ei_device *ei_local = (struct ei_device *) dev->priv; @@ -622,11 +622,10 @@ * Wait a full Tx time (1.2ms) + some guard time, NS says 1.6ms total. * Early datasheets said to poll the reset bit, but now they say that * it "is not a reliable indicator and subsequently should be ignored." - - * We wait at least 10ms. + * We wait 3ms. (NB: udelay is for < 1ms, so encapsulate accordingly.) */ - - wait_start_time = jiffies; - - while (jiffies - wait_start_time <= 1*HZ/100) - - barrier(); + for (i=0; i<6; i++) + udelay(500); /* * Reset RBCR[01] back to zero as per magic incantation. -----BEGIN PGP SIGNATURE----- Version: 2.6.1 iQCVAwUBM1eb+UOoGXQKy1gNAQFFoQQAqRikXOteMPnIK15lUENo4REOKlC1XJjS mBmudufa4VdmEvhOZD25SgFqrklJzXhSENB2ftawb+5MANVClaufMNOZRuEEYCMa 3N2eYoowOcwTPO+D4BK4WX/Tpwxnh4j07tXjhmiaV8lliNWnHag/yxVfIn7Ipw2M Suu2TZl9OLE= =yf92 -----END PGP SIGNATURE----- -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com