projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57d3c7b
)
can: mcp251x: increase rx_errors on overflow, not only rx_over_errors
author
Sascha Hauer
<s.hauer@pengutronix.de>
Thu, 30 Sep 2010 07:46:00 +0000
(09:46 +0200)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Mon, 18 Oct 2010 09:19:42 +0000
(11:19 +0200)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
drivers/net/can/mcp251x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/can/mcp251x.c
b/drivers/net/can/mcp251x.c
index c06e02382eca5896cb9409c24de8dfe93ceaa4d1..fdea752f398fd23b94d02ed432552cc6be2a03aa 100644
(file)
--- a/
drivers/net/can/mcp251x.c
+++ b/
drivers/net/can/mcp251x.c
@@
-816,10
+816,14
@@
static irqreturn_t mcp251x_can_ist(int irq, void *dev_id)
if (intf & CANINTF_ERRIF) {
/* Handle overflow counters */
if (eflag & (EFLG_RX0OVR | EFLG_RX1OVR)) {
- if (eflag & EFLG_RX0OVR)
+ if (eflag & EFLG_RX0OVR)
{
net->stats.rx_over_errors++;
- if (eflag & EFLG_RX1OVR)
+ net->stats.rx_errors++;
+ }
+ if (eflag & EFLG_RX1OVR) {
net->stats.rx_over_errors++;
+ net->stats.rx_errors++;
+ }
can_id |= CAN_ERR_CRTL;
data1 |= CAN_ERR_CRTL_RX_OVERFLOW;
}