android_kernel_samsung_msm8976/drivers/net/can/usb
Ahmed S. Darwish cd99ca324e can: kvaser_usb: Fix state handling upon BUS_ERROR events
commit e638642b08c170d2021b706f0b1c4f4ae93d8cbd 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
..
peak_usb can: peak_usb: fix memset() usage 2015-01-16 06:59:00 -08:00
Kconfig
Makefile
ems_usb.c
esd_usb2.c can: esd_usb2: fix memory leak on disconnect 2014-12-06 15:05:48 -08:00
kvaser_usb.c can: kvaser_usb: Fix state handling upon BUS_ERROR events 2015-02-05 22:35:36 -08:00
usb_8dev.c