From 8009ccce437ecc68abc5fb47cf866240a1cdaae4 Mon Sep 17 00:00:00 2001 From: Thomas Stranger Date: Sun, 13 Aug 2023 12:49:55 +0200 Subject: [PATCH] drivers: can: mcux: flexcan: can_set_mode supports can_mode_3_samples In case CAN-FD mode is not enabled the mcux flexcan driver supports CAN_MODE_3_SAMPLES. This has been removed inadvertently while adding can-fd support. Signed-off-by: Thomas Stranger --- drivers/can/can_mcux_flexcan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/can/can_mcux_flexcan.c b/drivers/can/can_mcux_flexcan.c index fd754a184a5..d212903f34b 100644 --- a/drivers/can/can_mcux_flexcan.c +++ b/drivers/can/can_mcux_flexcan.c @@ -431,7 +431,7 @@ static int mcux_flexcan_stop(const struct device *dev) static int mcux_flexcan_set_mode(const struct device *dev, can_mode_t mode) { - can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY; + can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_3_SAMPLES; const struct mcux_flexcan_config *config = dev->config; struct mcux_flexcan_data *data = dev->data; uint32_t ctrl1;