All of lore.kernel.org
 help / color / mirror / Atom feed
* mcp25xxfd: missing cerrif
@ 2020-02-11 12:53 Marc Kleine-Budde
  2020-02-11 13:31 ` Thomas.Kopp
  0 siblings, 1 reply; 6+ messages in thread
From: Marc Kleine-Budde @ 2020-02-11 12:53 UTC (permalink / raw)
  To: Thomas Kopp, linux-can

Hello Thomas,

according to the mcp2518fd datasheet:

> 10.5.3 CAN BUS ERROR INTERRUPT - CERRIF
>
> The CiTREC register will count the errors during transmit and receive
> according to the ISO 11898-1:2015. The CERRIF flag will be set based
> on the error counter values. The flag must be cleared by the
> application.
> 
> CERRIF will be set each time a threshold in the TEC/REC counter is
> crossed by the following conditions:
>
> - TEC or REC exceeds the Error Warning state threshold
> - The transmitter or receiver transitions to Error Passive state
> - The transmitter transitions to Bus Off state
> - The transmitter or receiver transitions from Error Passive to Error
>   Active state

I don't see this interrupt, neither on the mcp2517fd nor on the
mcp2518fd rev0.0.

> - The module transitions from Bus Off to Error Active state, after
>   the bus off recovery sequence
>
> When the user clears CERRIF, it will remain clear until a new counter
> crossing occurs.

The workaround in the driver is next to trivial and doesn't cause much
overhead, but can you try to confirm the error and try to get it fixed
in the next chip revision?

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

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

end of thread, other threads:[~2020-02-18 11:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-11 12:53 mcp25xxfd: missing cerrif Marc Kleine-Budde
2020-02-11 13:31 ` Thomas.Kopp
2020-02-11 13:51   ` Marc Kleine-Budde
2020-02-12  9:59     ` Thomas.Kopp
2020-02-14 13:59       ` Marc Kleine-Budde
2020-02-18 11:44         ` Thomas.Kopp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.