]> 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)
commite6706f7336d2c55fe5818b42852c0a9ab999f753
tree438976107899ac0787e5a53964daea7f394868e4
parent34ec1bf5f9585a4d9cacc93b9b405628718631b4
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