projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcdfc18
)
can: kvaser_pciefd: Clear listen-only bit if not explicitly requested
author
Jimmy Assarsson
<extja@kvaser.com>
Tue, 16 May 2023 13:43:14 +0000
(15:43 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:32:50 +0000
(17:32 +0100)
commit
bf7ac55e991ca177f1ac16be51152f1ef291a4df
upstream.
The listen-only bit was never cleared, causing the controller to
always use listen-only mode, if previously set.
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-3-extja@kvaser.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/kvaser_pciefd.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/kvaser_pciefd.c
b/drivers/net/can/kvaser_pciefd.c
index
847816d
..
4a0894a
100644
(file)
--- a/
drivers/net/can/kvaser_pciefd.c
+++ b/
drivers/net/can/kvaser_pciefd.c
@@
-559,6
+559,8
@@
static void kvaser_pciefd_setup_controller(struct kvaser_pciefd_can *can)
if (can->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)
mode |= KVASER_PCIEFD_KCAN_MODE_LOM;
+ else
+ mode &= ~KVASER_PCIEFD_KCAN_MODE_LOM;
mode |= KVASER_PCIEFD_KCAN_MODE_EEN;
mode |= KVASER_PCIEFD_KCAN_MODE_EPEN;