Re: [PATCH] can: peakcan: report bus recovery as well

2019-10-04 Thread Marc Kleine-Budde
On 9/25/19 10:58 AM, Jeroen Hofstee wrote: > While the state changes are reported when the error counters increase > and decrease, there is no event when the bus recovers and the error > counters decrease again. So add those as well. > > Change the state going downward to be ERROR_PASSIVE -> ERROR

[PATCH] can: peakcan: report bus recovery as well

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