linux/drivers/net/can/c_can
Holger Bechtold 7ee330c7b3 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 <Holger.Bechtold@gmx.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2013-11-25 21:48:54 +01:00
..
Kconfig can: Kconfig: convert 'depends on CAN_DEV' into 'if CAN_DEV...endif' block 2013-01-26 16:58:58 +01:00
Makefile c_can_pci: generic module for C_CAN/D_CAN on PCI 2012-06-19 21:22:28 +02:00
c_can.c can: c_can: fix calculation of transmitted bytes on tx complete 2013-11-25 21:48:54 +01:00
c_can.h can: c_can: Add d_can raminit support 2012-11-27 09:49:31 +01:00
c_can_pci.c can: c_can: remove unnecessary pci_set_drvdata() 2013-09-21 15:43:15 +02:00
c_can_platform.c net: can: c_can_platform: Remove redundant of_match_ptr 2013-10-01 12:30:25 -04:00