drivers: can: mcp2515: correct min/max timing values

The MCP2515 requires phase segment 2 to be at least 2 time quanta.

The prescaler has a 6 bit register, allowing for real-world prescaler
values between 1 and 64.

Fixes: #44484

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2022-04-01 21:05:46 +02:00 committed by Marti Bolivar
commit c389594e12

View file

@ -849,7 +849,7 @@ static const struct can_driver_api can_api_funcs = {
.sjw = 0x1,
.prop_seg = 0x01,
.phase_seg1 = 0x01,
.phase_seg2 = 0x01,
.phase_seg2 = 0x02,
.prescaler = 0x01
},
.timing_max = {
@ -857,7 +857,7 @@ static const struct can_driver_api can_api_funcs = {
.prop_seg = 0x08,
.phase_seg1 = 0x08,
.phase_seg2 = 0x08,
.prescaler = 0x20
.prescaler = 0x40
}
};