]> git.baikalelectronics.ru Git - kernel.git/commit
can: ifi: Increment TX counters only on real transmission
authorMarek Vasut <marex@denx.de>
Sat, 7 May 2016 22:34:15 +0000 (00:34 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 9 May 2016 09:07:28 +0000 (11:07 +0200)
commitc23d967d6fbcd7e509c7c196b6ca58feecaed9dc
treee9331a50095f062a39bebd0649e835ac2403b19b
parente46827f621e70a4d9aac0baa2bbeb378ec0599b0
can: ifi: Increment TX counters only on real transmission

Only increment the TX counters in the irq handler if a CAN message
was sent. The current code incremented the counters also if the TX
FIFO empty interrupt happened, which is incorrect.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/ifi_canfd/ifi_canfd.c