Skip to contentSkip to conversation

Consolidate and unify state change handling

PATCH Superseded Andri Yngvason 1 participant 1 message Sep 18, 2014 CAN network drivers

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

cover Consolidate and unify state change handling

Hi,

Here are my patches to improve consistency of error-state handling between platforms.

These are also my first patches posted to the linux kernel, so I apologise in advance if I'm doing something wrong.

Andri Yngvason (4):
can: dev: Add generic error-state-change handling
can: flexcan: Use generic error-state-change handling
can: mscan: Use generic error-state-change handling
can: sja1000: Use generic error-state-change handling

 drivers/net/can/dev.c             | 79 
+++++++++++++++++++++++++++++++++++++++
 drivers/net/can/flexcan.c         | 66 ++------------------------------
 drivers/net/can/mscan/mscan.c     | 62 ++++++++++++++----------------
 drivers/net/can/sja1000/sja1000.c | 29 +++++---------
 include/linux/can/dev.h           | 10 +++++
 include/uapi/linux/can/error.h    |  1 +
 6 files changed, 130 insertions(+), 117 deletions(-)