can: switch carrier on if device was stopped while in bus-off state
authorWolfgang Grandegger <wg@grandegger.com>
Mon, 20 Jul 2009 04:06:41 +0000 (04:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2009 19:28:30 +0000 (12:28 -0700)
commit1b0d92244ff2434a98272f6d2525da32fc230f19
tree71ab998e48c94b1d67729da22051b8e24cc59258
parentb3d0df7ca35018ebbc24fd102ed7021cf593ba74
can: switch carrier on if device was stopped while in bus-off state

This patch fixes a problem when a device is stopped while in the
bus-off state. Then the carrier remains off forever.

Signed-off-by: Kurt Van Dijck <kurt.van.dijck@skynet.be>
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/dev.c