modprobe fec causing smsc95xx reset & unregister

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

modprobe fec causing smsc95xx reset & unregister

跳至解决方案
1,968 次查看
billchen
Contributor III

imx6q  4.1.15 kenel 

 

when I modprobe fec , caused smsc95xx 'USB disconnect' and unregistered then register , 

I want to know the reason. 

0 项奖励
1 解答
1,943 次查看
billchen
Contributor III

I found the reason that problem actually was caused by hardware.  I need to change device tree of  'regulator' part ,

在原帖中查看解决方案

0 项奖励
6 回复数
1,944 次查看
billchen
Contributor III

I found the reason that problem actually was caused by hardware.  I need to change device tree of  'regulator' part ,

0 项奖励
1,948 次查看
billchen
Contributor III

actually I want change eth0 to eth1 & eth0 to eth1, normally fec initialize at first, I compile fec && smsc95xx as module to change the sequence . it is ok in imx8 4.19,but in imx6q 4.1.15  when I modprobe fec, causing smsc95xx reset , I couldn't change the eth0 eth1 sequence 

0 项奖励
1,956 次查看
billchen
Contributor III

thanks for your docment. I'll try KGDB .  I have tried ftrace tools .   It bothers me a lot ,because on our imx8mm board 4.19 kernel , it didn't happen ,   I can modprobe fec and won't influence the smsc95xx. 

0 项奖励
1,954 次查看
igorpadykov
NXP Employee
NXP Employee

in general one can check if smsc95xx driver is built into the kernel ("=y") or built
as a module ("=m") or is not selected.

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/configs/imx_v6_v7_defconfig?h=imx...

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/configs/imx_v6_v7_defconfig?h=imx...

 

Best regards
igor

0 项奖励
1,949 次查看
billchen
Contributor III

On imx8 4.19  I have no trouble. 

0 项奖励
1,964 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Bill

 

one can try to rebuild all image from scratch, reset reason can be found using

debugging, one can use AN4553  Using Open Source Debugging Tools for Linux on i.MX Processors

 

Best regards
igor