FLEXCAN timeout on multiple ifup/ifdown

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FLEXCAN timeout on multiple ifup/ifdown

654 次查看
smanni
Contributor II

Hi,

on a custom design based on i.MX6SX I'm facing a timeout when I try to ifup the interface after an ifdown:

 

~# ip link set can0 up type can bitrate 500000
~# ip link set can0 down
~# ip link set can0 up type can bitrate 500000
[ 1456.393368] A link change request failed with some changes committed already. Interface can0 may have been left with an inconsistent configuration, please check.
RTNETLINK answers: Connection timed out

 As you can see the device is not used after ifup.

Digging into the flexcan driver I found that on ifdown the flexcan_low_power_enter_ack() exits with -ETIMEDOUT because the LPM_ACK bit in FLEXCANx_MCR is never set.

I tried to enlarge the timeout from 250us to 1000us but it does not have any affect.

 

Have anyone out there ever experienced something like this? Someone of you may try to reproduce the issue on another design or evaluation board with any i.MX.

Thank you.

 

P.S. the version of BSP I'm using is the lastest one: Linux 6.6.3_1.0.0

标签 (1)
标记 (2)
0 项奖励
回复
4 回复数

141 次查看
smanni
Contributor II

any update?

0 项奖励
回复

446 次查看
smanni
Contributor II

Anyone can help?

0 项奖励
回复

598 次查看
smanni
Contributor II

Hi,

the patch you suggested is not wothless because I already have this:

#define FLEXCAN_TIMEOUT_US      (250)

 

Do you have any other idea?  Could you please try multiple ifup/ifdown on one of yours evaluation board?

 

Best,

Stefano

0 项奖励
回复

610 次查看
jimmychan
NXP TechSupport
NXP TechSupport
0 项奖励
回复