Commit 34c25ae4 authored by Pavel Pisa's avatar Pavel Pisa Committed by Ille, Ondrej, Ing.

driver: workaround for kernel bittiming algorithm preference for high prescaller values.

The mainline kernel patch

  can: dev: can-calc-bit-timing(): better sample point calculation

changed preference from low prescaller values to high ones
in bitrate calculation. This results in coarse time-quanta
values and causes problems which leads to CTU CAN FD
errors during communication.
Signed-off-by: Pavel Pisa's avatarPavel Pisa <pisa@cmp.felk.cvut.cz>
parent c3ba2cce
Pipeline #9416 canceled with stages
in 53 minutes and 11 seconds
......@@ -294,7 +294,7 @@ const struct can_bittiming_const ctu_can_fd_bit_timing_max = {
.tseg2_max = 63,
.sjw_max = 31,
.brp_min = 1,
.brp_max = 255,
.brp_max = 8,
.brp_inc = 1,
};
......@@ -306,7 +306,7 @@ const struct can_bittiming_const ctu_can_fd_bit_timing_data_max = {
.tseg2_max = 31,
.sjw_max = 31,
.brp_min = 1,
.brp_max = 255,
.brp_max = 2,
.brp_inc = 1,
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment