From: Holger Bechtold Date: Mon, 25 Nov 2013 14:48:19 +0000 (+0100) Subject: can: c_can: fix calculation of transmitted bytes on tx complete X-Git-Tag: v3.13-rc3~28^2~30^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ee330c7b3b738847bf297912b371bbcec3bc994;p=pandora-kernel.git can: c_can: fix calculation of transmitted bytes on tx complete The number of bytes transmitted was not updated correctly, if several CAN messages (with different length) were transmitted in one 'bunch'. Thus programs like 'ifconfig' showed wrong transmit byte counts. Reason was, that the message object whose DLC is to be read was not necessarily the active one at the time when priv->read_reg(priv, C_CAN_IFACE(MSGCTRL_REG, 0)) & IF_MCONT_DLC_MASK; was executed. Signed-off-by: Holger Bechtold Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed