projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
can: mcp251x: avoid write to error flag register if it's unnecessary
[cascardo/linux.git]
/
drivers
/
net
/
can
/
spi
/
mcp251x.c
diff --git
a/drivers/net/can/spi/mcp251x.c
b/drivers/net/can/spi/mcp251x.c
index
575790e
..
74a7dfe
100644
(file)
--- a/
drivers/net/can/spi/mcp251x.c
+++ b/
drivers/net/can/spi/mcp251x.c
@@
-843,7
+843,7
@@
static irqreturn_t mcp251x_can_ist(int irq, void *dev_id)
if (clear_intf)
mcp251x_write_bits(spi, CANINTF, clear_intf, 0x00);
- if (eflag)
+ if (eflag
& (EFLG_RX0OVR | EFLG_RX1OVR)
)
mcp251x_write_bits(spi, EFLG, eflag, 0x00);
/* Update can state */