linux/drivers/net/can/usb
Marc Kleine-Budde f8a2da6ec2 can: gs_usb: gs_can_close(): add missing set of CAN state to CAN_STATE_STOPPED
After an initial link up the CAN device is in ERROR-ACTIVE mode. Due
to a missing CAN_STATE_STOPPED in gs_can_close() it doesn't change to
STOPPED after a link down:

| ip link set dev can0 up
| ip link set dev can0 down
| ip --details link show can0
| 13: can0: <NOARP,ECHO> mtu 16 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 10
|     link/can  promiscuity 0 allmulti 0 minmtu 0 maxmtu 0
|     can state ERROR-ACTIVE restart-ms 1000

Add missing assignment of CAN_STATE_STOPPED in gs_can_close().

Cc: stable@vger.kernel.org
Fixes: d08e973a77 ("can: gs_usb: Added support for the GS_USB CAN devices")
Link: https://lore.kernel.org/all/20230718-gs_usb-fix-can-state-v1-1-f19738ae2c23@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2023-07-20 11:12:45 +02:00
..
etas_es58x can: etas_es58x: remove es58x_get_product_info() 2022-12-12 11:39:13 +01:00
kvaser_usb can: kvaser_usb: Add len8_dlc support 2023-05-22 20:21:30 +02:00
peak_usb can: peak_usb: Reorder include directives alphabetically 2023-02-02 17:39:29 +01:00
ems_usb.c can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00
esd_usb.c can: esd_usb: Use consistent prefix ESD_USB_ for macros 2023-06-22 09:40:34 +02:00
f81604.c can: usb: f81604: add Fintek F81604 support 2023-05-15 22:53:49 +02:00
gs_usb.c can: gs_usb: gs_can_close(): add missing set of CAN state to CAN_STATE_STOPPED 2023-07-20 11:12:45 +02:00
Kconfig can: usb: f81604: add Fintek F81604 support 2023-05-15 22:53:49 +02:00
Makefile can: usb: f81604: add Fintek F81604 support 2023-05-15 22:53:49 +02:00
mcba_usb.c can: mcba_usb: Fix termination command argument 2022-11-24 16:26:48 +01:00
ucan.c can: ucan: remove unused ucan_priv::intf 2022-12-12 11:41:25 +01:00
usb_8dev.c can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00