pch_can: Add setting TEC/REC statistics processing
authorTomoya <tomoya-linux@dsn.okisemi.com>
Sun, 12 Dec 2010 20:24:25 +0000 (20:24 +0000)
committerDavid 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

index dcd8f0032fd1fc04b3f3085ca35921beba998314..4697b1cf94e83669ffa68ce47ef9eb3bc4082c33 100644 (file)
@@ -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);