can: c_can: end pending transmission on network stop (ifdown)
authorViktor Babrian <babrian.viktor@renyi.mta.hu>
Sun, 18 Jan 2015 19:01:40 +0000 (20:01 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 21 Jan 2015 21:43:14 +0000 (22:43 +0100)
commit7ffd7b4e169d619e66928fe5d997723f2c6f1056
tree821f24f7118485fba220eaac09337adc0c4c45b3
parent06efe0e54018cb19cf0807447dc3ac747ffcfd1c
can: c_can: end pending transmission on network stop (ifdown)

Put controller into init mode in network stop to end pending transmissions. The
issue is observed in cases when transmitted frame is not acked.

Signed-off-by: Viktor Babrian <babrian.viktor@renyi.mta.hu>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.c