Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85599
b: refs/heads/master
c: 1a5f1c4
h: refs/heads/master
i:
  85597: 578ea8d
  85595: 9de6f0b
  85591: 8ce8712
  85583: 73bdfdc
  85567: 6f863b6
v: v3
  • Loading branch information
Ben Dooks authored and Jeff Garzik committed Feb 11, 2008
1 parent 4f9f4f0 commit c93adf3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b2b4ff05593bc35c90dac84ecb82cb7501ecd07
refs/heads/master: 1a5f1c4ff80f522555d78d4dd0109f18395c6d83
17 changes: 14 additions & 3 deletions trunk/drivers/net/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@
#define writesb outsb
#define writesw outsw
#define writesl outsl
#define DM9000_IRQ_FLAGS (IRQF_SHARED | IRQF_TRIGGER_HIGH)
#define DEFAULT_TRIGGER IRQF_TRIGGER_HIGH
#else
#define DM9000_IRQ_FLAGS (IRQF_SHARED | IRQT_RISING)
#define DEFAULT_TRIGGER (0)
#endif

/*
Expand Down Expand Up @@ -614,10 +614,21 @@ static int
dm9000_open(struct net_device *dev)
{
board_info_t *db = (board_info_t *) dev->priv;
unsigned long irqflags = db->irq_res->flags & IRQF_TRIGGER_MASK;

dev_dbg(db->dev, "entering %s\n", __func__);

if (request_irq(dev->irq, &dm9000_interrupt, DM9000_IRQ_FLAGS, dev->name, dev))
/* If there is no IRQ type specified, default to something that
* may work, and tell the user that this is a problem */

if (irqflags == IRQF_TRIGGER_NONE) {
dev_warn(db->dev, "WARNING: no IRQ resource flags set.\n");
irqflags = DEFAULT_TRIGGER;
}

irqflags |= IRQF_SHARED;

if (request_irq(dev->irq, &dm9000_interrupt, irqflags, dev->name, dev))
return -EAGAIN;

/* Initialize DM9000 board */
Expand Down

0 comments on commit c93adf3

Please sign in to comment.