]> git.dujemihanovic.xyz Git - u-boot.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)
commitf3558be91e5086f1673d47ba8c430e7640b32e71
treedb75fa9d753979e3f672b956c3091c75d06b9b9a
parente23544cffe7057d678846498ec0fbf21eff9bc95
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