Re: [PATCH 2/2] can: C_CAN: add bus recovery events

2019-10-01 Thread Kurt Van Dijck
On di, 01 okt 2019 09:40:57 +0200, Kurt Van Dijck wrote: > On do, 26 sep 2019 08:50:51 +, Jeroen Hofstee wrote: > > While the state is update when the error counters increase and decrease, > > there is no event when the bus recovers and the error counters decrease > > again. So add that event

Re: [PATCH 2/2] can: C_CAN: add bus recovery events

2019-10-01 Thread Kurt Van Dijck
On do, 26 sep 2019 08:50:51 +, Jeroen Hofstee wrote: > While the state is update when the error counters increase and decrease, > there is no event when the bus recovers and the error counters decrease > again. So add that event as well. > > Change the state going downward to be ERROR_PASSIVE

[PATCH 2/2] can: C_CAN: add bus recovery events

2019-09-26 Thread Jeroen Hofstee
While the state is update when the error counters increase and decrease, there is no event when the bus recovers and the error counters decrease again. So add that event as well. Change the state going downward to be ERROR_PASSIVE -> ERROR_WARNING -> ERROR_ACTIVE instead of directly to