Hi all!
I have some trouble with USB on imx287. I have a custom board, with two ethernet, usb modem Cinterion EHS5 and mainline kernel 3.18.20.
When I use two ports at the same time, the usb controller very often dies. For example I unplug two ehternet at the same time:
[ 239.117637] 3g-internet: renamed from ppp0
[ 266.671910] fec 800f4000.ethernet eth1: Link is Down
[ 266.677045] br-lan: port 2(eth1) entered disabled state
[ 267.172576] fec 800f0000.ethernet eth0: Link is Down
[ 267.541847] ci_hdrc ci_hdrc.1: fatal error
[ 267.546001] ci_hdrc ci_hdrc.1: HC died; cleaning up
[ 267.551720] usb 1-1: USB disconnect, device number 2
[ 267.557291] cdc_acm 1-1:1.0: failed to set dtr/rts
[ 267.691796] br-lan: port 1(eth0) entered disabled state
[ 267.702052] fec 800f0000.ethernet eth0: MDIO read timeout
[ 267.731662] fec 800f0000.ethernet eth0: MDIO read timeout
[ 268.201667] fec 800f0000.ethernet eth0: MDIO read timeout
[ 268.241661] fec 800f0000.ethernet eth0: MDIO read timeout
I tried with another kernel (4.14.50) and the problem persisted.
What could be the problem?
Hi iun
one can check if this could be caused by hardware, look at
AN: Issues often met in i.MX28 application
Application note sharing: Issues often met in i.MX28 application
usb signal margin may be low, so it may loose connection,
one can check usb layout using AN4215 i.MX28 Layout and Design Guidelines
sect.7 USB
https://www.nxp.com/docs/en/application-note/AN4215.pdf
Also if usb device is powered from i.MX28 side, one can pay attention if power
is sufficient for normal operation of this device and consider external power supply
if necessary.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------