Skip to content

Commit c128a89

Browse files
str4t0mcarlescufi
authored andcommitted
can: stm32fd: correct timing min/max for prop_seg and sjw
This commit changes the timing_min_data prop_seg initialization of st,stm32-fdcan drier to zero. Additionally the nominal sync jump width limits are also adopted to new values 1 and 128. This was not tested until recently and therefore caused the can timing test to fail on stm32g4 after PR #44197 got merged. Signed-off-by: Thomas Stranger <[email protected]>
1 parent 78b027f commit c128a89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/can/can_stm32fd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,14 @@ static const struct can_driver_api can_api_funcs = {
191191
.get_max_filters = can_mcan_get_max_filters,
192192
.set_state_change_callback = can_stm32fd_set_state_change_callback,
193193
.timing_min = {
194-
.sjw = 0x7f,
194+
.sjw = 0x01,
195195
.prop_seg = 0x00,
196196
.phase_seg1 = 0x01,
197197
.phase_seg2 = 0x01,
198198
.prescaler = 0x01
199199
},
200200
.timing_max = {
201-
.sjw = 0x7f,
201+
.sjw = 0x80,
202202
.prop_seg = 0x00,
203203
.phase_seg1 = 0x100,
204204
.phase_seg2 = 0x80,
@@ -207,7 +207,7 @@ static const struct can_driver_api can_api_funcs = {
207207
#ifdef CONFIG_CAN_FD_MODE
208208
.timing_min_data = {
209209
.sjw = 0x01,
210-
.prop_seg = 0x01,
210+
.prop_seg = 0x00,
211211
.phase_seg1 = 0x01,
212212
.phase_seg2 = 0x01,
213213
.prescaler = 0x01

0 commit comments

Comments
 (0)