Skip to content

Commit bf7ac55

Browse files
Jimmy Assarssonmarckleinebudde
authored andcommitted
can: kvaser_pciefd: Clear listen-only bit if not explicitly requested
The listen-only bit was never cleared, causing the controller to always use listen-only mode, if previously set. 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 aed0e6c commit bf7ac55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/can/kvaser_pciefd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,8 @@ static void kvaser_pciefd_setup_controller(struct kvaser_pciefd_can *can)
554554

555555
if (can->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)
556556
mode |= KVASER_PCIEFD_KCAN_MODE_LOM;
557+
else
558+
mode &= ~KVASER_PCIEFD_KCAN_MODE_LOM;
557559

558560
mode |= KVASER_PCIEFD_KCAN_MODE_EEN;
559561
mode |= KVASER_PCIEFD_KCAN_MODE_EPEN;

0 commit comments

Comments
 (0)