projects
/
GitHub
/
moto-9609
/
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:
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
|
blame
|
history
diff --git
a/drivers/net/can/pch_can.c
b/drivers/net/can/pch_can.c
index dcd8f0032fd1fc04b3f3085ca35921beba998314..4697b1cf94e83669ffa68ce47ef9eb3bc4082c33 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);