From fc7598fa04e7faa4c113b3f7d9e41594b6cf379c Mon Sep 17 00:00:00 2001 From: Tomislav Milkovic Date: Tue, 17 May 2022 12:23:52 +0200 Subject: [PATCH] drivers: can: can_stm32h7: Fix min timings Assertions in can_mcan failed because the driver expects values strictly greater than 0 Signed-off-by: Tomislav Milkovic --- drivers/can/can_stm32h7.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/can/can_stm32h7.c b/drivers/can/can_stm32h7.c index 2e764c5ab16..f78762c451f 100644 --- a/drivers/can/can_stm32h7.c +++ b/drivers/can/can_stm32h7.c @@ -113,14 +113,14 @@ static const struct can_driver_api can_stm32h7_driver_api = { * (FDCAN_NBTP). */ .timing_min = { - .sjw = 0x00, + .sjw = 0x01, .prop_seg = 0x00, - .phase_seg1 = 0x00, - .phase_seg2 = 0x00, - .prescaler = 0x00 + .phase_seg1 = 0x01, + .phase_seg2 = 0x01, + .prescaler = 0x01 }, .timing_max = { - .sjw = 0x7f, + .sjw = 0x80, .prop_seg = 0x00, .phase_seg1 = 0x100, .phase_seg2 = 0x80, @@ -133,11 +133,11 @@ static const struct can_driver_api can_stm32h7_driver_api = { * register (FDCAN_DBTP). */ .timing_data_min = { - .sjw = 0x00, + .sjw = 0x01, .prop_seg = 0x00, - .phase_seg1 = 0x00, - .phase_seg2 = 0x00, - .prescaler = 0x00 + .phase_seg1 = 0x01, + .phase_seg2 = 0x01, + .prescaler = 0x01 }, .timing_data_max = { .sjw = 0x10,