linux/include/linux/can
Andri Yngvason 68010e8cb6 can: dev: Consolidate and unify state change handling
commit bac78aabcf upstream.

The handling of can error states is different between platforms.
This is an attempt to correct that problem.

I've moved this handling into a generic function for changing the
error state. This ensures that error state changes are handled
the same way everywhere (where this function is used).

This new mechanism also adds reverse state transitioning in error
frames, i.e. the user will be notified through the socket interface
when the state goes down.

Signed-off-by: Andri Yngvason <andri.yngvason@marel.com>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-11-20 18:05:47 +00:00
..
platform can: unify identifiers to ensure unique include processing 2014-05-19 09:38:24 +02:00
core.h can: Fix kernel panic at security_sock_rcv_skb 2017-03-16 02:27:24 +00:00
dev.h can: dev: Consolidate and unify state change handling 2018-11-20 18:05:47 +00:00
led.h can: unify identifiers to ensure unique include processing 2014-05-19 09:38:24 +02:00
skb.h can: unify identifiers to ensure unique include processing 2014-05-19 09:38:24 +02:00