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: stable@vger.kernel.org Signed-off-by: Jimmy Assarsson <extja@kvaser.com> Link: https://lore.kernel.org/r/20230516134318.104279-3-extja@kvaser.com Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
1 parent aed0e6c commit bf7ac55

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)