]> git.baikalelectronics.ru Git - uboot.git/commit
net: xilinx_axi: check PCS/PMA PHY status in setup_phy
authorAndy Chiu <andy.chiu@sifive.com>
Tue, 1 Nov 2022 03:58:00 +0000 (11:58 +0800)
committerMichal Simek <michal.simek@amd.com>
Mon, 5 Dec 2022 07:55:54 +0000 (08:55 +0100)
commit55579bc783a784c79ab8885ce7ad01fadecd54ed
treedb75fa9d753979e3f672b956c3091c75d06b9b9a
parentff9d2623ff3911ee879d023dfd25c2f4086a0acd
net: xilinx_axi: check PCS/PMA PHY status in setup_phy

Both PCS/PMA PHY and the external PHY need to have a valid link status
in order to have Ethernet traffic. Check and wait this status at
setup_phy() so that we could diagnose if there is a PHY issue.

Signed-off-by: Andy Chiu <andy.chiu@sifive.com>
Reviewed-by: Greentime Hu <greentime.hu@sifive.com>
Link: https://lore.kernel.org/r/20221101035800.912644-3-andy.chiu@sifive.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/net/xilinx_axi_emac.c