projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fea9294
)
pch_can: Add setting TEC/REC statistics processing
author
Tomoya
<tomoya-linux@dsn.okisemi.com>
Sun, 12 Dec 2010 20:24:25 +0000
(20:24 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 13 Dec 2010 20:24:28 +0000
(12:24 -0800)
Add setting TEC/REC statistics processing.
Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/pch_can.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/pch_can.c
b/drivers/net/can/pch_can.c
index
dcd8f00
..
4697b1c
100644
(file)
--- a/
drivers/net/can/pch_can.c
+++ b/
drivers/net/can/pch_can.c
@@
-568,6
+568,9
@@
static void pch_can_error(struct net_device *ndev, u32 status)
break;
}
+ cf->data[6] = errc & PCH_TEC;
+ cf->data[7] = (errc & PCH_REC) >> 8;
+
priv->can.state = state;
netif_rx(skb);