All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jun Sun <jsun@mvista.com>
To: linux-mips@oss.sgi.com, Ralf Baechle <ralf@oss.sgi.com>
Subject: [2.4 PATCH] pcnet32.c - tx underflow error
Date: Wed, 10 Jul 2002 14:56:08 -0700	[thread overview]
Message-ID: <3D2CAD78.9070609@mvista.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

This patch fixes a tx underflow error for 79c973 chip.  It essentially delay 
the transmission until the whole packet is received into the on-chip sdram.

The patch is already accepted by Marcelo for the 2.4 tree, I think.

Jun

[-- Attachment #2: pcnet32.patch --]
[-- Type: text/plain, Size: 693 bytes --]

diff -Nru linux/drivers/net/pcnet32.c.orig linux/drivers/net/pcnet32.c
--- linux/drivers/net/pcnet32.c.orig	Tue Jul  9 15:05:55 2002
+++ linux/drivers/net/pcnet32.c	Tue Jul  9 18:28:19 2002
@@ -569,7 +569,7 @@
 	break;
     case 0x2625:
 	chipname = "PCnet/FAST III 79C973"; /* PCI */
-	fdx = 1; mii = 1;
+	fdx = 1; mii = 1; fset = 1;
 	break;
     case 0x2626:
 	chipname = "PCnet/Home 79C978"; /* PCI */
@@ -613,7 +613,7 @@
     if(fset)
     {
 	a->write_bcr(ioaddr, 18, (a->read_bcr(ioaddr, 18) | 0x0800));
-	a->write_csr(ioaddr, 80, (a->read_csr(ioaddr, 80) & 0x0C00) | 0x0c00);
+	a->write_csr(ioaddr, 80, (a->read_csr(ioaddr, 80) & ~0x0C00) | 0x0c00);
 	dxsuflo = 1;
 	ltint = 1;
     }

             reply	other threads:[~2002-07-10 21:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-10 21:56 Jun Sun [this message]
2002-07-10 23:51 ` [2.4 PATCH] pcnet32.c - tx underflow error Alan Cox
2002-07-10 23:51   ` Alan Cox
2002-07-10 23:51   ` Jun Sun
2002-07-11  2:21     ` Alan Cox
2002-07-11  2:21       ` Alan Cox
2002-07-11  3:01     ` Jason Gunthorpe
2002-07-11  0:08   ` Jun Sun
2002-07-11  2:16     ` Alan Cox
2002-07-11  2:16       ` Alan Cox
2002-07-11  8:12       ` Thomas Bogendoerfer
2002-07-12  2:51   ` Marcelo Tosatti
2002-07-12  2:51     ` Marcelo Tosatti
2002-07-12 18:26     ` Jun Sun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D2CAD78.9070609@mvista.com \
    --to=jsun@mvista.com \
    --cc=linux-mips@oss.sgi.com \
    --cc=ralf@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.