Skip to content

Commit 422a3d8

Browse files
str4t0mjgl-meta
authored andcommitted
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 <[email protected]> (cherry picked from commit 8009ccc)
1 parent 6182441 commit 422a3d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/can/can_mcux_flexcan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ static int mcux_flexcan_stop(const struct device *dev)
426426

427427
static int mcux_flexcan_set_mode(const struct device *dev, can_mode_t mode)
428428
{
429-
can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY;
429+
can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_3_SAMPLES;
430430
const struct mcux_flexcan_config *config = dev->config;
431431
struct mcux_flexcan_data *data = dev->data;
432432
uint32_t ctrl1;

0 commit comments

Comments
 (0)