summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFrank Jungclaus <frank.jungclaus@esd.eu>2022-11-30 21:22:42 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-12-14 11:32:05 +0100
commit4fd6f84e0a0c432d1acc56b7ae76e7676587081d (patch)
treefaefe7e4fd65b47a182deb6246b587c6c0c032f4 /scripts
parentcf0e42310648a23188a411f7287dd95599086fce (diff)
downloadlinux-4fd6f84e0a0c432d1acc56b7ae76e7676587081d.tar.gz
linux-4fd6f84e0a0c432d1acc56b7ae76e7676587081d.tar.bz2
linux-4fd6f84e0a0c432d1acc56b7ae76e7676587081d.zip
can: esd_usb: Allow REC and TEC to return to zero
[ Upstream commit 918ee4911f7a41fb4505dff877c1d7f9f64eb43e ] 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 <frank.jungclaus@esd.eu> Link: https://lore.kernel.org/all/20221130202242.3998219-2-frank.jungclaus@esd.eu Cc: stable@vger.kernel.org Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions