Skip to content
Commit e397b85e authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Carles Cufí
Browse files

drivers: can: calculate a default SJW value



Change the CAN timing calculation APIs to automatically calculate a default
(Re-)Synchronization Jump Width (SJW) value. The calculated value can be
overwritten by the caller if desired.

This allows automatically scaling the SJW according to the number of Time
Quanta (TQ) used for phase segment 2 instead of relying on a compile-time
fallback value defined in devicetree.

This reduces the can_set_timing()/can_set_timing_data() API functions to
simple setters (with validation).

Fixes: #63033

Signed-off-by: default avatarHenrik Brix Andersen <hebad@vestas.com>
parent e4835445
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment