can: flexcan: handle tx-complete CAN frames via rx-offload infrastructure
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 18 Sep 2018 09:40:39 +0000 (11:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:37:29 +0000 (09:37 +0100)
commit04f985776f0428a39cc6a68be5c74c3cf2d8cf83
tree8a92a077f996a799783f3b4865b3610cfe5d9c63
parentf699c3222635eaf919f3d4716fe0e0565cd4afad
can: flexcan: handle tx-complete CAN frames via rx-offload infrastructure

commit ed72bc8bcb9277061e753faf300b20f97323761c upstream.

Current flexcan driver will put TX-ECHO in regular unsorted way, in
this case TX-ECHO can come after the response to the same TXed message.
In some cases, for example for J1939 stack, things will break.
This patch is using new rx-offload API to put the messages just in the
right place.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
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/flexcan.c