diff options
author | Marc Kleine-Budde | 2023-02-01 17:18:56 +0100 |
---|---|---|
committer | Marc Kleine-Budde | 2023-02-06 13:57:25 +0100 |
commit | 52375446f2b52cfafa1804fc11570c992b894d94 (patch) | |
tree | 66caab2d72855bbd898d2392af3e05a2f542bf25 /Documentation | |
parent | 9cf670dbe69d11c6f29284aa80d78741f038ecd4 (diff) |
can: bittiming: can_fixup_bittiming(): set effective tq
The can_fixup_bittiming() function is used to validate the
user-supplied low-level bit timing parameters and calculate the
bitrate prescaler (brp) from the requested time quanta (tq) and the
CAN clock of the controller.
can_fixup_bittiming() selects the best matching integer bit rate
prescaler, which may result in a different time quantum than the value
specified by the user.
Calculate the resulting time quantum and assign it so that the user
sees the effective time quantum.
Link: https://lore.kernel.org/all/20230202110854.2318594-4-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions