From: Tomoya Date: Sun, 12 Dec 2010 20:24:25 +0000 (+0000) Subject: pch_can: Add setting TEC/REC statistics processing X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c78ab76a05cd788af0383354ffe819e0617f6a0;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.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);