Files
linux/drivers
Ahmed S. Darwish cd99ca324e can: kvaser_usb: Fix state handling upon BUS_ERROR events
commit e638642b08 upstream.

While being in an ERROR_WARNING state, and receiving further
bus error events with error counters still in the ERROR_WARNING
range of 97-127 inclusive, the state handling code erroneously
reverts back to ERROR_ACTIVE.

Per the CAN standard, only revert to ERROR_ACTIVE when the
error counters are less than 96.

Moreover, in certain Kvaser models, the BUS_ERROR flag is
always set along with undefined bits in the M16C status
register. Thus use bitwise operators instead of full equality
for checking that register against bus errors.

Signed-off-by: Ahmed S. Darwish <ahmed.darwish@valeo.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-02-05 22:35:36 -08:00
..
2013-12-08 07:29:25 -08:00
2014-03-06 21:30:14 -08:00
2014-04-14 06:42:18 -07:00
2015-01-29 17:40:55 -08:00
2015-02-05 22:35:36 -08:00
2015-01-27 07:52:32 -08:00