From: SubGenius <subg@atheist.tamu.edu>
Subject: Re: 3c503 problems with 2.0.27
Date: Fri, 18 Apr 1997 11:06:32 -0500 (CDT) [thread overview]
Message-ID: <199704181606.LAA28627@atheist.tamu.edu> (raw)
-----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 <gpg109@rsphy1.anu.edu.au>.
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 <linux/types.h>
#include <linux/ptrace.h>
#include <linux/string.h>
+#include <linux/delay.h>
#include <asm/system.h>
#include <asm/uaccess.h>
#include <asm/bitops.h>
@@ -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
next reply other threads:[~1997-04-18 16:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-18 16:06 SubGenius [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-04-18 14:43 3c503 problems with 2.0.27 Przemek Klosowski
1997-04-17 21:21 SubGenius
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox