Hi Forum,
I am using am3352+Micrel's ksz8081 (RMII), and now the board works normally, but sometimes the two LEDs of the RJ45 connector are always on after the board is powered on (the network is abnormal), and the current judgment is that the PHY is not working normally.
If you use the CPU's GPIO to restart the PHY, and then the software restarts the network, everything will be fine. So I would like to ask if there is a way to read back the PHY ID through the mdio bus in user space to determine whether the PHY is running abnormally? Or is there any other better way?
At present, there will be an exception about every 200 starts (the two LEDs of the RJ45 connector will always be on and the network will be abnormal).
I have recently used phytool, ethtool tools, but they cannot solve my problem.
P.S. Under abnormal conditions, the content of dmesg is the same as under normal conditions.
Thank you

