Patchwork [net-next-2.6,v8,19/20] CAN : Add setting TEC/REC statistics processing

login
register
mail settings
Submitter Tomoya
Date Dec. 7, 2010, 11:12 a.m.
Message ID <4CFE1685.5090208@dsn.okisemi.com>
Download mbox | patch
Permalink /patch/74528/
State Changes Requested
Delegated to: David Miller
Headers show

Comments

Tomoya - Dec. 7, 2010, 11:12 a.m.
Add setting TEC/REC statistics processing.

Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
---
 drivers/net/can/pch_can.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/net/can/pch_can.c b/drivers/net/can/pch_can.c
index dcd8f00..4697b1c 100644
--- 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);