linux/drivers/net/can
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
..
c_can can: c_can: Convert to platform remove callback returning void 2023-05-15 22:53:49 +02:00
cc770 can: cc770_platform: Convert to platform remove callback returning void 2023-05-15 22:53:49 +02:00
ctucanfd can: ctucanfd: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
dev can: length: refactor frame lengths definition to add size in bits 2023-06-22 09:43:40 +02:00
flexcan can: flexcan: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
ifi_canfd can: ifi_canfd: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
m_can can: m_can: fix coding style 2023-06-22 09:42:28 +02:00
mscan can: mscan: mpc5xxx_can: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
peak_canfd can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00
rcar can: rcar: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
sja1000 can: sja1000: Prevent overrun stalls with a soft reset on Renesas SoCs 2023-06-22 09:41:32 +02:00
slcan can: slcan: fix freed work crash 2022-12-07 10:32:24 +01:00
softing can: softing: Convert to platform remove callback returning void 2023-05-15 22:53:51 +02:00
spi can: mcp251xfd: __mcp251xfd_chip_set_mode(): increase poll timeout 2023-07-17 19:54:51 +02:00
usb can: gs_usb: gs_can_close(): add missing set of CAN state to CAN_STATE_STOPPED 2023-07-20 11:12:45 +02:00
at91_can.c can: at91_can: Convert to platform remove callback returning void 2023-05-15 22:53:49 +02:00
bxcan.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-05-18 14:39:34 -07:00
can327.c can: can327: flush TX_work on ldisc .close() 2022-12-07 10:32:36 +01:00
grcan.c can: grcan: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
janz-ican3.c can: janz-ican3: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
Kconfig can: kvaser_pciefd: Remove SPI flash parameter read functionality 2023-06-22 09:44:29 +02:00
kvaser_pciefd.c can: kvaser_pciefd: Use TX FIFO size read from CAN controller 2023-06-22 09:44:30 +02:00
Makefile can: bxcan: add support for ST bxCAN controller 2023-03-28 11:43:36 +02:00
sun4i_can.c can: sun4i_can: Convert to platform remove callback returning void 2023-05-15 22:53:51 +02:00
ti_hecc.c can: ti_hecc: fix coding style 2023-06-22 09:42:28 +02:00
vcan.c can: dev: add CAN XL support to virtual CAN 2022-09-15 09:08:09 +02:00
vxcan.c rtnetlink: pass netlink message header and portid to rtnl_configure_link() 2022-10-31 18:10:21 -07:00
xilinx_can.c can: dev: add transceiver capabilities to xilinx_can 2023-05-22 20:21:30 +02:00