OrangePi_CM5/drivers/net
Frank Jungclaus 4fd6f84e0a 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: 96d8e90382 ("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>
2022-12-14 11:32:05 +01:00
..
appletalk net: appletalk: cops: Fix data race in cops_probe1 2021-06-16 12:01:37 +02:00
arcnet arcnet: fix potential memory leak in com20020_probe() 2022-12-02 17:40:02 +01:00
bonding net: bonding: Unsync device addresses on ndo_stop 2022-09-28 11:10:31 +02:00
caif caif_virtio: fix race between virtio_device_ready() and ndo_open() 2022-07-07 17:52:18 +02:00
can can: esd_usb: Allow REC and TEC to return to zero 2022-12-14 11:32:05 +01:00
dsa net: dsa: sja1105: fix memory leak in sja1105_setup_devlink_regions() 2022-12-14 11:32:04 +01:00
ethernet net: mvneta: Fix an out of bounds check 2022-12-14 11:32:05 +01:00
fddi net: fddi: fix UAF in fza_probe 2021-07-25 14:36:20 +02:00
fjes fjes: Check for error irq 2021-12-29 12:25:57 +01:00
hamradio hamradio: fix issue of dev reference count leakage in bpq_device_event() 2022-11-16 09:57:11 +01:00
hippi drivers: net: hippi: Fix deadlock in rr_close() 2022-05-09 09:05:06 +02:00
hyperv hv_netvsc: Fix race between VF offering and VF association message from host 2022-10-30 09:41:19 +01:00
ieee802154 ca8210: Fix crash by zero initializing data 2022-12-14 11:32:00 +01:00
ipa net: ipa: properly limit modem routing table use 2022-09-28 11:10:34 +02:00
ipvlan ipvlan: Fix out-of-bound bugs caused by unset skb->mac_header 2022-09-28 11:10:30 +02:00
mdio of: mdio: Add of_node_put() when breaking out of for_each_xx 2022-09-28 11:10:33 +02:00
netdevsim net: Use u64_stats_fetch_begin_irq() for stats fetch. 2022-09-08 11:11:40 +02:00
pcs
phy net: phy: fix null-ptr-deref while probe() failed 2022-12-08 11:23:56 +01:00
plip net: plip: don't call kfree_skb/dev_kfree_skb() under spin_lock_irq() 2022-12-14 11:32:04 +01:00
ppp ppp: ensure minimum packet size in ppp_write() 2022-01-27 10:54:01 +01:00
slip drivers: net: slip: fix NPD bug in sl_tx_timeout() 2022-04-20 09:23:24 +02:00
team net: team: Unsync device addresses on ndo_stop 2022-09-28 11:10:31 +02:00
usb net: usb: qmi_wwan: add u-blox 0x1342 composition 2022-12-14 11:31:54 +01:00
vmxnet3 vmxnet3: correctly report encapsulated LRO packet 2022-12-14 11:32:01 +01:00
wan net: lapbether: fix issue of dev reference count leakage in lapbeth_device_event() 2022-11-16 09:57:10 +01:00
wimax
wireguard wireguard: netlink: avoid variable-sized memcpy on sockaddr 2022-09-28 11:10:34 +02:00
wireless wifi: wilc1000: validate number of channels 2022-12-02 17:40:06 +01:00
xen-netback xen/netback: fix build warning 2022-12-14 11:32:04 +01:00
Kconfig lib/crypto: blake2s: include as built-in 2022-05-30 09:33:26 +02:00
LICENSE.SRC
Makefile
Space.c
bareudp.c bareudp: use ipv6_mod_enabled to check if IPv6 enabled 2022-04-08 14:40:22 +02:00
dummy.c
eql.c
geneve.c geneve: fix TOS inheriting for ipv4 2022-08-25 11:38:02 +02:00
gtp.c
ifb.c ifb: fix building without CONFIG_NET_CLS_ACT 2021-11-18 14:03:49 +01:00
loopback.c
macsec.c macsec: add missing attribute validation for offload 2022-12-14 11:32:05 +01:00
macvlan.c macvlan: enforce a consistent minimal mtu 2022-11-25 17:45:55 +01:00
macvtap.c macvtap: advertise link netns via netlink 2022-04-13 21:00:59 +02:00
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c net: net_netdev: Fix error handling in ntb_netdev_init_module() 2022-12-08 11:23:56 +01:00
rionet.c
sb1000.c
sungem_phy.c net: sungem_phy: Add of_node_put() for reference returned by of_get_parent() 2022-08-03 12:00:46 +02:00
tap.c tuntap: add sanity checks about msg_controllen in sendmsg 2022-04-13 21:00:59 +02:00
thunderbolt.c net: thunderbolt: Fix error handling in tbnet_init() 2022-11-25 17:45:48 +01:00
tun.c net: tun: Fix use-after-free in tun_detach() 2022-12-08 11:23:56 +01:00
veth.c veth: Ensure eth header is in skb's linear part 2022-04-20 09:23:11 +02:00
virtio_net.c virtio_net: fix memory leak inside XPD_TX with mergeable 2022-08-25 11:37:57 +02:00
vrf.c vrf: don't run conntrack on vrf with !dflt qdisc 2021-12-14 11:32:36 +01:00
vsockmon.c
vxlan.c vxlan: fix error return code in vxlan_fdb_append 2022-04-27 13:53:53 +02:00
xen-netfront.c xen-netfront: Fix NULL sring after live migration 2022-12-14 11:32:02 +01:00