linux/drivers/net/can
Ahmed S. Darwish e638642b08 can: kvaser_usb: Fix state handling upon BUS_ERROR events
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>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-01-27 08:55:09 +01:00
..
c_can can: c_can: end pending transmission on network stop (ifdown) 2015-01-21 22:43:14 +01:00
cc770 Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
m_can can: m_can: tag current CAN FD controllers as non-ISO 2015-01-15 16:57:59 +01:00
mscan Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
sja1000 Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
softing net: can: softing: drop owner assignment from platform_drivers 2014-10-20 16:21:01 +02:00
spi can: mcp251x: Use dmam_alloc_coherent 2014-08-18 01:03:43 +02:00
usb can: kvaser_usb: Fix state handling upon BUS_ERROR events 2015-01-27 08:55:09 +01:00
Kconfig drivers/net/can/Kconfig: Let CAN_AT91 depend on HAS_IOMEM 2014-10-03 15:52:03 -07:00
Makefile can: Enable -D__CHECK_ENDIAN__ for sparse by default 2014-12-07 21:22:06 +01:00
at91_can.c net: can: drop owner assignment from platform_drivers 2014-10-20 16:20:59 +02:00
bfin_can.c net: can: drop owner assignment from platform_drivers 2014-10-20 16:20:59 +02:00
dev.c can: dev: fix crtlmode_supported check 2015-01-15 16:57:59 +01:00
flexcan.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
grcan.c net: can: drop owner assignment from platform_drivers 2014-10-20 16:20:59 +02:00
janz-ican3.c net: can: drop owner assignment from platform_drivers 2014-10-20 16:20:59 +02:00
led.c can: only rename enabled led triggers when changing the netdev name 2014-05-27 15:05:41 +02:00
pch_can.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
rcar_can.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
slcan.c can: slcan/vcan: eliminate banner[] variable, switch to pr_info() 2014-12-07 21:22:05 +01:00
ti_hecc.c net: can: drop owner assignment from platform_drivers 2014-10-20 16:20:59 +02:00
vcan.c can: slcan/vcan: eliminate banner[] variable, switch to pr_info() 2014-12-07 21:22:05 +01:00
xilinx_can.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00