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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Mar 2018 16:24:44 +0000 (18:24 +0200)
commite7dc75584302003a2cd50ea8146f6ee60d0af11f
treeecb13d093ea8fd1d10f052a1a35bbfe06f812fdd
parent74f08b1e0de81d8ee15c04177dbe15840e865cea
can: peak/pcie_fd: remove useless code when interface starts

commit ffd137f7043cb30067e1bff6fe62a073ae190b23 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/peak_canfd/peak_canfd.c