MLK-21412 can: flexcan: add ISO CAN FD feature support
authorJoakim Zhang <qiangqing.zhang@nxp.com>
Mon, 8 Apr 2019 04:56:35 +0000 (12:56 +0800)
committerJoakim Zhang <qiangqing.zhang@nxp.com>
Thu, 18 Apr 2019 09:16:19 +0000 (17:16 +0800)
commit6ed0666b02f90026dc2800b1627193e840c36097
tree2b18eb8f0b02394e607897ff38cd7935e8be8701
parentc23425feb311d19cfffbc82d2ec2cdbbdb72bbd9
MLK-21412 can: flexcan: add ISO CAN FD feature support

ISO CAN FD is introduced to increase the failture detection capability
than non-ISO CAN FD. The non-ISO CAN FD is still supported by FlexCAN so
that it can be used mainly during an intermediate phase, for evaluation
and development purposes.

Therefore, it is strongly recommended to configure FlexCAN to the ISO
CAN FD protocol by setting the ISOCANFDEN field in the CTRL2 register.

Test Command:
ISO FD MODE:
ip link set can0 type can bitrate 1000000 dbitrate 4000000 fd on
fd-non-iso off

non-ISO FD MODE:
ip link set can0 type can bitrate 1000000 dbitrate 4000000 fd on
fd-non-iso on

NOTE: if you only set fd on, driver will use ISO FD MODE by default.

Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
drivers/net/can/flexcan.c