From: Sebastian Andrzej Siewior Date: Fri, 25 Jul 2014 18:16:40 +0000 (+0200) Subject: can: flexcan: handle state passive -> warning transition X-Git-Tag: omap-for-v3.17/fixes-against-rc2~24^2~10^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ce261d0bb491da957278cdcba207791f329d1da;p=pandora-kernel.git can: flexcan: handle state passive -> warning transition Once the CAN-bus is open and a packet is sent, the controller switches into the PASSIVE state. Once the BUS is closed again it goes the back err-warning. The TX error counter goes 0 -> 0x80 -> 0x7f. This patch makes sure that the user learns about this state chang (CAN_STATE_ERROR_WARNING => CAN_STATE_ERROR_PASSIVE) Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Matthias Klein Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed