Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102920
b: refs/heads/master
c: 3073556
h: refs/heads/master
v: v3
  • Loading branch information
Holger Schurig authored and John W. Linville committed Jun 14, 2008
1 parent ce7c4cb commit 188f00f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: d2c3cc0070d32bf6cabe6b82942c3e80eae0bfc3
refs/heads/master: 3073556171f1cf2044ff38c1fc3b9f6c805f0873
9 changes: 5 additions & 4 deletions trunk/drivers/net/wireless/libertas/if_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,8 @@ static irqreturn_t if_cs_interrupt(int irq, void *data)

/* Ask card interrupt cause register if there is something for us */
cause = if_cs_read16(card, IF_CS_CARD_INT_CAUSE);
lbs_deb_cs("cause 0x%04x\n", cause);

if (cause == 0) {
/* Not for us */
return IRQ_NONE;
Expand All @@ -390,10 +392,6 @@ static irqreturn_t if_cs_interrupt(int irq, void *data)
return IRQ_HANDLED;
}

/* Clear interrupt cause */
if_cs_write16(card, IF_CS_CARD_INT_CAUSE, cause & IF_CS_BIT_MASK);
lbs_deb_cs("cause 0x%04x\n", cause);

if (cause & IF_CS_BIT_RX) {
struct sk_buff *skb;
lbs_deb_cs("rx packet\n");
Expand Down Expand Up @@ -434,6 +432,9 @@ static irqreturn_t if_cs_interrupt(int irq, void *data)
lbs_queue_event(priv, event >> 8 & 0xff);
}

/* Clear interrupt cause */
if_cs_write16(card, IF_CS_CARD_INT_CAUSE, cause & IF_CS_BIT_MASK);

lbs_deb_leave(LBS_DEB_CS);
return IRQ_HANDLED;
}
Expand Down

0 comments on commit 188f00f

Please sign in to comment.