linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 00/14] consolidate and unify state change and bus-off handling
@ 2011-12-07 14:55 Wolfgang Grandegger
  2011-12-07 14:55 ` [RFC PATCH 01/14] can: flexcan: fix irq flooding by clearing all interrupt sources Wolfgang Grandegger
                   ` (14 more replies)
  0 siblings, 15 replies; 18+ messages in thread
From: Wolfgang Grandegger @ 2011-12-07 14:55 UTC (permalink / raw)
  To: linux-can; +Cc: socketcan-users, Wolfgang Grandegger

As already announced, here is my first patch series to consolidate the
handling of CAN error state changes and bus-off.

I have also updated the Flexcan driver to behave like the other drivers,
especially bus error reporting is now enabled via interrupt source. This
works on my i.MX28 SOC. Marc, would be nice if you could test it on
other SOCs as well (or somebody else). Hopefully we will not need to
handle different hardware variants of the Flexcan controller.

I separated "consolidate error state handling" and "consolidate bus-off
handling" to make the difference clear. The latter one is more delicate
as it relys on the "back to error active" change to arrive to re-enable
the TX queue.

I have also pushed these patches to my cloned Gitrorious repository
"wg-linux-can-next". See:

https://gitorious.org/~wgrandegger/linux-can/wg-linux-can-next/commits/master

Any comments are appreciated.

Wolfgang.

Wolfgang Grandegger (14):
  can: flexcan: fix irq flooding by clearing all interrupt sources
  can: replace the dev_dbg/info/err/... with the new netdev_xxx macros
  can: flexcan: only for bus error reporting enable berr interrupt
  can: bfin_can/ti_hecc/mscan: add missing do_get_berr_counter callback
  can: add error counters to the data fields of any CAN error message
  can: dev: consolidate error state change handling
  can: flexcan: consolidate error state handling
  can: flexcan: consolidate bus-off handling
  can: sja1000: consolidate error state handling
  can: sja1000: consolidate bus-off handling
  can: mscan: consolidate error state handling
  can: mscan: consolidate bus-off handling
  can: cc770: consolidate error state handling
  can: cc770: consolidate bus-off handling

 drivers/net/can/bfin_can.c        |   36 +++++---
 drivers/net/can/cc770/cc770.c     |   57 ++++++-----
 drivers/net/can/dev.c             |  103 +++++++++++++++++---
 drivers/net/can/flexcan.c         |  194 ++++++++++++-------------------------
 drivers/net/can/mcp251x.c         |    3 +-
 drivers/net/can/mscan/mscan.c     |  129 ++++++++++++-------------
 drivers/net/can/sja1000/sja1000.c |   67 ++++++-------
 drivers/net/can/ti_hecc.c         |   32 ++++--
 drivers/net/can/usb/ems_usb.c     |   57 +++++-------
 drivers/net/can/usb/esd_usb2.c    |   27 +++---
 include/linux/can/dev.h           |   11 ++
 include/linux/can/error.h         |    2 +
 12 files changed, 369 insertions(+), 349 deletions(-)

-- 
1.7.4.1


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2011-12-07 20:30 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-07 14:55 [RFC PATCH 00/14] consolidate and unify state change and bus-off handling Wolfgang Grandegger
2011-12-07 14:55 ` [RFC PATCH 01/14] can: flexcan: fix irq flooding by clearing all interrupt sources Wolfgang Grandegger
     [not found]   ` <1323269728-17491-2-git-send-email-wg-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
2011-12-07 15:04     ` Wolfgang Grandegger
2011-12-07 14:55 ` [RFC PATCH 02/14] can: replace the dev_dbg/info/err/... with the new netdev_xxx macros Wolfgang Grandegger
2011-12-07 14:55 ` [RFC PATCH 03/14] can: flexcan: only for bus error reporting enable berr interrupt Wolfgang Grandegger
2011-12-07 15:08   ` Wolfgang Grandegger
2011-12-07 14:55 ` [RFC PATCH 04/14] can: bfin_can/ti_hecc/mscan: add missing do_get_berr_counter callback Wolfgang Grandegger
2011-12-07 14:55 ` [RFC PATCH 05/14] can: add error counters to the data fields of any CAN error message Wolfgang Grandegger
2011-12-07 14:55 ` [RFC PATCH 06/14] can: dev: consolidate error state change handling Wolfgang Grandegger
2011-12-07 14:55 ` [RFC PATCH 07/14] can: flexcan: consolidate error state handling Wolfgang Grandegger
2011-12-07 14:55 ` [RFC PATCH 08/14] can: flexcan: consolidate bus-off handling Wolfgang Grandegger
2011-12-07 14:55 ` [RFC PATCH 09/14] can: sja1000: consolidate error state handling Wolfgang Grandegger
2011-12-07 14:55 ` [RFC PATCH 10/14] can: sja1000: consolidate bus-off handling Wolfgang Grandegger
2011-12-07 14:55 ` [RFC PATCH 11/14] can: mscan: consolidate error state handling Wolfgang Grandegger
2011-12-07 14:55 ` [RFC PATCH 12/14] can: mscan: consolidate bus-off handling Wolfgang Grandegger
2011-12-07 14:55 ` [RFC PATCH 13/14] can: cc770: consolidate error state handling Wolfgang Grandegger
2011-12-07 14:55 ` [RFC PATCH 14/14] can: cc770: consolidate bus-off handling Wolfgang Grandegger
2011-12-07 20:30 ` [RFC PATCH 00/14] consolidate and unify state change and " Wolfgang Grandegger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).