summaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/pcnet_cs.c
diff options
context:
space:
mode:
authorKomuro <komurojun-mbn@nifty.com>2008-06-07 14:37:56 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-06-27 07:28:21 +0200
commit54299ef7e9ae4b5d47b02f3abea168cdc62a6f70 (patch)
tree8f271804bf406e6ebc2eda0249068232170006d1 /drivers/net/pcmcia/pcnet_cs.c
parente1000e: fix EEH recovery during reset on PPC (diff)
downloadlinux-54299ef7e9ae4b5d47b02f3abea168cdc62a6f70.tar.xz
linux-54299ef7e9ae4b5d47b02f3abea168cdc62a6f70.zip
pcnet_cs, axnet_cs: clear bogus interrupt before request_irq
Signed-off-by: Komuro <komurojun-mbn@nifty.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/pcmcia/pcnet_cs.c')
-rw-r--r--drivers/net/pcmcia/pcnet_cs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c
index fd8158a86f64..2d4c4ad89b8d 100644
--- a/drivers/net/pcmcia/pcnet_cs.c
+++ b/drivers/net/pcmcia/pcnet_cs.c
@@ -969,6 +969,7 @@ static int pcnet_open(struct net_device *dev)
int ret;
pcnet_dev_t *info = PRIV(dev);
struct pcmcia_device *link = info->p_dev;
+ unsigned int nic_base = dev->base_addr;
DEBUG(2, "pcnet_open('%s')\n", dev->name);
@@ -976,6 +977,8 @@ static int pcnet_open(struct net_device *dev)
return -ENODEV;
set_misc_reg(dev);
+
+ outb_p(0xFF, nic_base + EN0_ISR); /* Clear bogus intr. */
ret = request_irq(dev->irq, ei_irq_wrapper, IRQF_SHARED, dev_info, dev);
if (ret)
return ret;