On Fri, Feb 5, 2010 at 10:05 AM, Kurt Van Dijck <[email protected]> wrote:
> I never enabled the bus-error interrupts anywhere embedded. > To research odd behaviour, the error counters were helpfull, I like this idea much. I speak from a point of view of meanness ;-) : we have paid the chip manufacturer for the REC and TEC counters that are cleverly incremented and decremented (AFAIK it's more likely they are incremented that decremented, so there is always a window in which the user space application can catch an increase in them even if not polling at an excessive rate) by the controller itself so they could be easily exported to user space. Perhaps all we need is a function for this in can_priv such do_get_err_counters. Even better if these counters are exported via sysfs so the function above is guaranteed to be called in non-atomic context. -- Christian Pellegrin, see http://www.evolware.org/chri/ "Real Programmers don't play tennis, or any other sport which requires you to change clothes. Mountain climbing is OK, and Real Programmers wear their climbing boots to work in case a mountain should suddenly spring up in the middle of the computer room." _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
