]> git.baikalelectronics.ru Git - kernel.git/commit
can: c_can: Simplify TX interrupt cleanup
authorThomas Gleixner <tglx@linutronix.de>
Tue, 18 Mar 2014 17:19:14 +0000 (17:19 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 1 Apr 2014 09:55:01 +0000 (11:55 +0200)
commitc253744e68124eda8be6ed33dd4bb0ff678e293d
tree438976107899ac0787e5a53964daea7f394868e4
parentb0fefe2fb9b009a6163d4e567a8f490ba4aaaafe
can: c_can: Simplify TX interrupt cleanup

The function loads the message object from the hardware to get the
payload length. The previous patch stores that information in an
array, so we can avoid the hardware access.

Remove the hardware access and move the led toggle outside of the
spinlocked region. Toggle the led only once when at least one packet
has been received.

Binary size shrinks along with the code

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.c