]> git.baikalelectronics.ru Git - kernel.git/commit
can: peak/pcie_fd: remove useless code when interface starts
authorStephane Grosjean <s.grosjean@peak-system.com>
Thu, 8 Mar 2018 08:30:29 +0000 (09:30 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 12 Mar 2018 08:55:12 +0000 (09:55 +0100)
commit5b42e771c56550b3f7349d0d9eca3927fd1504a5
treedb930c4404556b7d77ac70adfe813249a951b0fa
parent607c655ae8413fcdac445e925aa8390d28109329
can: peak/pcie_fd: remove useless code when interface starts

When an interface starts, the echo_skb array is empty and the network
queue should be started only. This patch replaces useless code and locks
when the internal RX_BARRIER message is received from the IP core, telling
the driver that tx may start.

Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/peak_canfd/peak_canfd.c