drivers: can: mcan: Fix DBTP sjw register writes
The data-sjw value was incorrectly written to the NBTP register when it
should be written to the DBTP register.
This fixes a regression introduced by
5e0ca9b41e
.
Signed-off-by: Christoph Steiger <c.steiger@lemonage.de>
This commit is contained in:
parent
95e359d658
commit
6ce18c6e6a
1 changed files with 2 additions and 2 deletions
|
@ -127,9 +127,9 @@ void can_mcan_configure_timing(struct can_mcan_reg *can,
|
|||
CAN_MCAN_DBTP_DBRP_POS;
|
||||
|
||||
if (timing_data->sjw == CAN_SJW_NO_CHANGE) {
|
||||
can->nbtp |= dbtp_sjw;
|
||||
can->dbtp |= dbtp_sjw;
|
||||
} else {
|
||||
can->nbtp |= (((uint32_t)timing_data->sjw - 1UL) & 0x0F) <<
|
||||
can->dbtp |= (((uint32_t)timing_data->sjw - 1UL) & 0x0F) <<
|
||||
CAN_MCAN_DBTP_DSJW_POS;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue