From: Jimmy Assarsson extja@kvaser.com
Set can.state to CAN_STATE_STOPPED in kvaser_pciefd_stop(). Without this fix, wrong CAN state was repported after the interface was brought down.
Fixes: 26ad340e582d ("can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices") Cc: stable@vger.kernel.org Signed-off-by: Jimmy Assarsson extja@kvaser.com Link: https://lore.kernel.org/r/20230516134318.104279-2-extja@kvaser.com Signed-off-by: Marc Kleine-Budde mkl@pengutronix.de --- drivers/net/can/kvaser_pciefd.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/net/can/kvaser_pciefd.c b/drivers/net/can/kvaser_pciefd.c index 53e8a914c88b..867b421b9506 100644 --- a/drivers/net/can/kvaser_pciefd.c +++ b/drivers/net/can/kvaser_pciefd.c @@ -719,6 +719,7 @@ static int kvaser_pciefd_stop(struct net_device *netdev) iowrite32(0, can->reg_base + KVASER_PCIEFD_KCAN_IEN_REG); del_timer(&can->bec_poll_timer); } + can->can.state = CAN_STATE_STOPPED; close_candev(netdev);
return ret;
base-commit: 6ad85ed0ebf7ece0f376950a6b3b3c6048093d35
Hello:
This series was applied to netdev/net.git (main) by Marc Kleine-Budde mkl@pengutronix.de:
On Thu, 18 May 2023 09:32:35 +0200 you wrote:
From: Jimmy Assarsson extja@kvaser.com
Set can.state to CAN_STATE_STOPPED in kvaser_pciefd_stop(). Without this fix, wrong CAN state was repported after the interface was brought down.
Fixes: 26ad340e582d ("can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices") Cc: stable@vger.kernel.org Signed-off-by: Jimmy Assarsson extja@kvaser.com Link: https://lore.kernel.org/r/20230516134318.104279-2-extja@kvaser.com Signed-off-by: Marc Kleine-Budde mkl@pengutronix.de
[...]
Here is the summary with links: - [net,1/7] can: kvaser_pciefd: Set CAN_STATE_STOPPED in kvaser_pciefd_stop() https://git.kernel.org/netdev/net/c/aed0e6ca7dbb - [net,2/7] can: kvaser_pciefd: Clear listen-only bit if not explicitly requested https://git.kernel.org/netdev/net/c/bf7ac55e991c - [net,3/7] can: kvaser_pciefd: Call request_irq() before enabling interrupts https://git.kernel.org/netdev/net/c/84762d8da89d - [net,4/7] can: kvaser_pciefd: Empty SRB buffer in probe https://git.kernel.org/netdev/net/c/c589557dd142 - [net,5/7] can: kvaser_pciefd: Do not send EFLUSH command on TFD interrupt https://git.kernel.org/netdev/net/c/262d7a52ba27 - [net,6/7] can: kvaser_pciefd: Disable interrupts in probe error path https://git.kernel.org/netdev/net/c/11164bc39459 - [net,7/7] Revert "ARM: dts: stm32: add CAN support on stm32f746" https://git.kernel.org/netdev/net/c/36a6418bb125
You are awesome, thank you!
linux-stable-mirror@lists.linaro.org