From: Tomoya Date: Sun, 12 Dec 2010 20:24:25 +0000 (+0000) Subject: pch_can: Add setting TEC/REC statistics processing X-Git-Tag: v2.6.38-rc1~476^2~173 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0c78ab76a05cd788af0383354ffe819e0617f6a0;p=karo-tx-linux.git pch_can: Add setting TEC/REC statistics processing Add setting TEC/REC statistics processing. Signed-off-by: Tomoya MORINAGA Signed-off-by: David S. Miller --- diff --git a/drivers/net/can/pch_can.c b/drivers/net/can/pch_can.c index dcd8f0032fd1..4697b1cf94e8 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);