We've come across an issue related to the PHY driver, where upon boot the interface repeatedly reports "Link is up/Link is down". The probability of this symptom appearing differs from board to board, and it seems to be related to the clk to the phy being disabled at some point during the driver probe. Monitoring related signals showed clk was on before reset was pusled, clk is then disabled for ~4 seconds. To temporarily remedy this issue, we commented out line 3612 in fec_main.c:
This seemed a bit brutish, so after some investigation I found there seems to be some history of forum questions and various unmerged patches that claim to fix this issue (one of them identical to our quick resolution). See:
Problem with "swinging" ethernet link on i.MX28 based device - Patchwork - patchset untested by us as of yet.
Google Groups - Similar patchset to above, seems to be further along though.
Blames regression on commit e8fcfcd5684a4165fe3f86dd24baa14f1e3fad7e
https://community.nxp.com/thread/389902#comment-635049 - same fix as we've done, mentioned above, seems to work.
https://boundarydevices.com/i-mx6-kernel-l3-0-35_4-0-0/#comment-1416 - report of same symptoms.
Any suggestions on the correct path forward? Any official patches related to this issue?