Skip to content

RFC m_can: support device-specific interrupt handling

Torin Cooper-Bennun linux-can 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3can: m_can: add handle_dev_interrupts callback to m_can_opsdrivers/net/can/m_can/m_can.h+2 -03 replies
2/3can: m_can: m_can_isr(): handle device-specific interruptsdrivers/net/can/m_can/m_can.c+12 -10 replies
3/3can: tcan4x5x: add handle_dev_interrupts callback to opsdrivers/net/can/m_can/tcan4x5x-core.c+25 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC can-next 0/3] m_can: support device-specific interrupt handling

Using the TCAN4550, I've had occasions where the m_can driver has fallen over with the "nobody cared" message -- the ISR has returned IRQ_NONE upon "99,900 of the previous 100,000 interrupts" (see kernel/irq/spurious.c, __report_bad_irq()).

While such high numbers certainly indicate some kind of fault, presently, device-specific interrupts are totally ignored -- it may be that such a fault can be handled with a device-specific action.

Comments are welcome. One thing right off the bat: I'm not sure whether the new callback should be added alongside clear_interrupts, or if it should replace it.

I also need to replicate the fault observed with the TCAN4550 - it's unlikely that the handling added in this patchset is effective by itself.

Torin Cooper-Bennun (3):
can: m_can: add handle_dev_interrupts callback to m_can_ops
can: m_can: m_can_isr(): handle device-specific interrupts
can: tcan4x5x: add handle_dev_interrupts callback to ops

 drivers/net/can/m_can/m_can.c         | 13 ++++++++++++-
 drivers/net/can/m_can/m_can.h         |  2 ++
 drivers/net/can/m_can/tcan4x5x-core.c | 25 +++++++++++++++++++++++++
 3 files changed, 39 insertions(+), 1 deletion(-)