mirror-linux/drivers/net/can/dev
Haibo Chen 1eea46908c can: dev: keep the max bitrate error at 5%
Commit b360a13d44 ("can: dev: print bitrate error with two decimal
digits") changed calculation of the bit rate error from on-tenth of a
percent to on-hundredth of a percent, but forgot to adjust the scale of the
CAN_CALC_MAX_ERROR constant.

Keeping the existing logic unchanged: Only when the bitrate error exceeds
5% should an error be returned. Otherwise, simply output a warning log.

Fixes: b360a13d44 ("can: dev: print bitrate error with two decimal digits")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Link: https://patch.msgid.link/20260306-can-fix-v1-1-ac526cec6777@nxp.com
Cc: stable@kernel.org
[mkl: improve commit message]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2026-03-10 11:12:52 +01:00
..
Makefile Revert "can: raw: instantly reject unsupported CAN frames" 2026-01-15 09:52:04 +01:00
bittiming.c can: bittiming: add PWM validation 2025-11-26 11:20:43 +01:00
calc_bittiming.c can: dev: keep the max bitrate error at 5% 2026-03-10 11:12:52 +01:00
dev.c can: dev: alloc_candev_mqs(): add missing default CAN capabilities 2026-01-16 18:06:56 +01:00
length.c can: length: refactor frame lengths definition to add size in bits 2023-06-22 09:43:40 +02:00
netlink.c can: propagate CAN device capabilities via ml_priv 2026-01-15 09:52:04 +01:00
rx-offload.c netdev: replace napi_reschedule with napi_schedule 2023-10-11 17:28:06 -07:00
skb.c can: remove private CAN skb headroom infrastructure 2026-02-05 11:58:40 +01:00