Commit 94ce880ba756df6171da28538fe9e4f8f39c323d
1 parent
f54dc1486d
Exists in
smarc_8mm_imx_4.14.98_2.0.0_ga
and in
4 other branches
MLK-21424 can: flexcan: fix normal CAN can't receive remote frame after setting fd mode
The variable "is_canfd" will stay true after the following sequence: root@imx8qxpmek:~# ip link set can0 type can bitrate 1000000 dbitrate 4000000 fd on root@imx8qxpmek:~# ip link set can0 up root@imx8qxpmek:~# ip link set can0 down root@imx8qxpmek:~# ip link set can0 type can bitrate 1000000 It will use alloc_canfd_skb() to allocate skb for normal CAN when "is_canfd" is true, which will affect the receive of remote frame. Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
drivers/net/can/flexcan.c