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)
commitffd137f7043cb30067e1bff6fe62a073ae190b23
treedb930c4404556b7d77ac70adfe813249a951b0fa
parente6048a00cfd0863d32f53b226e0b9a3633fc3332
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