linux-mips
[Top] [All Lists]

[PATCH] Fix for the pcnet32 ethernet driver

To: linux-mips@linux-mips.org
Subject: [PATCH] Fix for the pcnet32 ethernet driver
From: Manish Lachwani <mlachwani@prometheus.mvista.com>
Date: Thu, 18 Nov 2004 10:41:08 -0800
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
Hi Ralf,

This patch fixes the pcnet32 ethernet driver to clear any other interrupt
when setting interrupt enable in the pcnet32 interrupt handler. This has been
tested on the NEC CMB-VR4133 board.

Please review 

Thanks
Manish Lachwani

Source: MontaVista Software, Inc. | http;//www.mvista.com | Manish Lachwani 
<mlachwani@mvista.com>
Type: Defect Fix
Disposition: Submitted to Linux-MIPS
Description:
        Fix the Interrupt Enable for the PcNet32 driver. Ack any
        remaining interrupts. Tested on the NEC CMB-VR4133

Index: linux/drivers/net/pcnet32.c
===================================================================
--- linux.orig/drivers/net/pcnet32.c
+++ linux/drivers/net/pcnet32.c
@@ -1897,7 +1897,7 @@
     }
 
     /* Set interrupt enable. */
-    lp->a.write_csr (ioaddr, 0, 0x0040);
+    lp->a.write_csr (ioaddr, 0, 0x7940);
     lp->a.write_rap (ioaddr,rap);
 
     if (netif_msg_intr(lp))
<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] Fix for the pcnet32 ethernet driver, Manish Lachwani <=