aboutsummaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorFrank Jungclaus <[email protected]>2022-11-30 21:22:42 +0100
committerMarc Kleine-Budde <[email protected]>2022-12-07 10:32:48 +0100
commit918ee4911f7a41fb4505dff877c1d7f9f64eb43e (patch)
treed325a27beeffc3d16f0de81fec214a6caa153259 /include/linux/overflow.h
parentf4a4d121ebecaa6f396f21745ce97de014281ccc (diff)
can: esd_usb: Allow REC and TEC to return to zero
We don't get any further EVENT from an esd CAN USB device for changes on REC or TEC while those counters converge to 0 (with ecc == 0). So when handling the "Back to Error Active"-event force txerr = rxerr = 0, otherwise the berr-counters might stay on values like 95 forever. Also, to make life easier during the ongoing development a netdev_dbg() has been introduced to allow dumping error events send by an esd CAN USB device. Fixes: 96d8e90382dc ("can: Add driver for esd CAN-USB/2 device") Signed-off-by: Frank Jungclaus <[email protected]> Link: https://lore.kernel.org/all/[email protected] Cc: [email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions