Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287483
b: refs/heads/master
c: 6e9d554
h: refs/heads/master
i:
  287481: b23d2e9
  287479: 6eb1927
v: v3
  • Loading branch information
Wolfgang Grandegger authored and Marc Kleine-Budde committed Feb 2, 2012
1 parent 573a791 commit a684737
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: ba7605745d5c99f0e71b3ec6c7cb5ed6afe540ad
refs/heads/master: 6e9d554fa6e481a848358c215f129432262123c0
7 changes: 6 additions & 1 deletion trunk/drivers/net/can/flexcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@
(FLEXCAN_ESR_TWRN_INT | FLEXCAN_ESR_RWRN_INT | FLEXCAN_ESR_BOFF_INT)
#define FLEXCAN_ESR_ERR_ALL \
(FLEXCAN_ESR_ERR_BUS | FLEXCAN_ESR_ERR_STATE)
#define FLEXCAN_ESR_ALL_INT \
(FLEXCAN_ESR_TWRN_INT | FLEXCAN_ESR_RWRN_INT | \
FLEXCAN_ESR_BOFF_INT | FLEXCAN_ESR_ERR_INT)

/* FLEXCAN interrupt flag register (IFLAG) bits */
#define FLEXCAN_TX_BUF_ID 8
Expand Down Expand Up @@ -577,7 +580,9 @@ static irqreturn_t flexcan_irq(int irq, void *dev_id)

reg_iflag1 = flexcan_read(&regs->iflag1);
reg_esr = flexcan_read(&regs->esr);
flexcan_write(FLEXCAN_ESR_ERR_INT, &regs->esr); /* ACK err IRQ */
/* ACK all bus error and state change IRQ sources */
if (reg_esr & FLEXCAN_ESR_ALL_INT)
flexcan_write(reg_esr & FLEXCAN_ESR_ALL_INT, &regs->esr);

/*
* schedule NAPI in case of:
Expand Down

0 comments on commit a684737

Please sign in to comment.