Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215215
b: refs/heads/master
c: 9c473fc
h: refs/heads/master
i:
  215213: e454a19
  215211: 061959d
  215207: 41c85aa
  215199: c91c973
v: v3
  • Loading branch information
Marc Kleine-Budde committed Oct 18, 2010
1 parent 916a36b commit d1cf7a7
Show file tree
Hide file tree
Showing 2 changed files with 10 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: beab675cb45f28a4a76780e43fd03e33bc773555
refs/heads/master: 9c473fc33915ddb14b71a4929c838c22b20a24ce
13 changes: 9 additions & 4 deletions trunk/drivers/net/can/mcp251x.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,15 +793,20 @@ static irqreturn_t mcp251x_can_ist(int irq, void *dev_id)
/* receive buffer 0 */
if (intf & CANINTF_RX0IF) {
mcp251x_hw_rx(spi, 0);
/* Free one buffer ASAP */
mcp251x_write_bits(spi, CANINTF, intf & CANINTF_RX0IF,
0x00);
/*
* Free one buffer ASAP
* (The MCP2515 does this automatically.)
*/
if (mcp251x_is_2510(spi))
mcp251x_write_bits(spi, CANINTF, CANINTF_RX0IF, 0x00);
}

/* receive buffer 1 */
if (intf & CANINTF_RX1IF) {
mcp251x_hw_rx(spi, 1);
clear_intf |= CANINTF_RX1IF;
/* the MCP2515 does this automatically */
if (mcp251x_is_2510(spi))
clear_intf |= CANINTF_RX1IF;
}

/* any error or tx interrupt we need to clear? */
Expand Down

0 comments on commit d1cf7a7

Please sign in to comment.