summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorAhmed S. Darwish <ahmed.darwish@valeo.com>2015-02-02 15:15:55 -0500
committerMarc Kleine-Budde <mkl@pengutronix.de>2015-02-04 14:07:03 +0100
commita9ca6e13d66042b3ac18d1352b88b7cd0da8fc21 (patch)
tree9469dc573b7cd674b591fc244fc8f5b130642dc4 /samples
parent8a00785edd166361e08c6cf710bf3acdd6038005 (diff)
can: kvaser_usb: Ignore spurious error events after a busoff
Sending data in high speed then introducing a busoff results in spurious BUS_ERROR events from the USBCan-II firmware directly _after_ the triggered BUS_OFF event. In the current CAN state handling code, this will lead to an invalid can state of ACTIVE, ERROR, or PASSIVE even though the CAN controller has been already shut down due to the busoff. Guard the state handling code from such invalid events. Signed-off-by: Ahmed S. Darwish <ahmed.darwish@valeo.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions