If both PCS/PMA PHY and an external PHY are pressent on the Ethernet, then the real link status should point to the external facing PHY. At the same time, we must ensure the link status of the PCS/PMA PHY is good before transmitting packets.
Change Log: --- v2 --- 1. Fix typo: use pcs-handle instead of pcs-phy in DT 2. Move printing of status waiting of pcs phy to debug and refactor code. Andy Chiu (2): net: xilinx_axi: add PCS/PMA PHY net: xilinx_axi: check PCS/PMA PHY status in setup_phy drivers/net/xilinx_axi_emac.c | 70 ++++++++++++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 2 deletions(-) -- 2.36.0