Skip to content

Commit aed0e6c

Browse files
Jimmy Assarssonmarckleinebudde
authored andcommitted
can: kvaser_pciefd: Set CAN_STATE_STOPPED in kvaser_pciefd_stop()
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: 26ad340 ("can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices") Cc: [email protected] Signed-off-by: Jimmy Assarsson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 6ad85ed commit aed0e6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/can/kvaser_pciefd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ static int kvaser_pciefd_stop(struct net_device *netdev)
719719
iowrite32(0, can->reg_base + KVASER_PCIEFD_KCAN_IEN_REG);
720720
del_timer(&can->bec_poll_timer);
721721
}
722+
can->can.state = CAN_STATE_STOPPED;
722723
close_candev(netdev);
723724

724725
return ret;

0 commit comments

Comments
 (0)