Skip to content

Commit

Permalink
pch_can: Add setting TEC/REC statistics processing
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomoya authored and David S. Miller committed Dec 13, 2010
1 parent fea9294 commit 0c78ab7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/can/pch_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0c78ab7

Please sign in to comment.