driver: bittiming min/max constraints for PROP/PH1 may be violated
struct can_bittiming_const
contains min/max only for tseg1
, tseg2
, sjw
, brp
.
In definition, it that tseg1 = prop_seg + phase_seg1
and in the bitrate calculation,
there is
bt->prop_seg = tseg1 / 2;
bt->phase_seg1 = tseg1 - bt->prop_seg;
PROP is 7 bits (max 127), PH1 is 6 bits (max 63), so further sanitization is required!