diff options
author | Roman Fietze <[email protected]> | 2018-07-11 15:36:14 +0200 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2018-07-23 14:34:45 +0200 |
commit | 393753b217f05474e714aea36c37501546ed1202 (patch) | |
tree | 9f7ba8e4b77ed0fbb89ec714802740a38f828bbe /scripts/gdb/linux/proc.py | |
parent | 5d4c94ed9f564224d7b37dbee13f7c5d4a8a01ac (diff) |
can: m_can.c: fix setup of CCCR register: clear CCCR NISO bit before checking can.ctrlmode
Inside m_can_chip_config(), when setting up the new value of the CCCR,
the CCCR_NISO bit is not cleared like the others, CCCR_TEST, CCCR_MON,
CCCR_BRSE and CCCR_FDOE, before checking the can.ctrlmode bits for
CAN_CTRLMODE_FD_NON_ISO.
This way once the controller was configured for CAN_CTRLMODE_FD_NON_ISO,
this mode could never be cleared again.
This fix is only relevant for controllers with version 3.1.x or 3.2.x.
Older versions do not support NISO.
Signed-off-by: Roman Fietze <[email protected]>
Cc: linux-stable <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions