So why would the SGMII link be down? My experience with SGMII is thatWhy do you need this? phylib will poll the PHY once per second andHowever, we hope that the network port can be linked only when
call the adjust_link callback whenever the link changes state.
the PHY and MAC are linked.
The adjust_link callback can ensure that the PHY status is normal,
but cannot ensure that the MAC address is linked.
the link comes up as soon as both ends have power. You are also not
using in-band signalling, you configure the MAC based on the
adjust_link callback.
Basically, whenever you do something which no other driver does, you
need to explain why. Do you see any other MAC driver using SGMII doing
this?
Andrew