Skip to content

Commit 0c89a9e

Browse files
committed
DwcEqosSnpDxe: Return proper status when link is down
Return EFI_NO_MEDIA instead of EFI_NOT_READY to avoid the long delays at boot. From DxeNetLib: > If Aip protocol is supported by low layer drivers, three kinds of > media states can be detected: EFI_SUCCESS, EFI_NOT_READY and > EFI_NO_MEDIA, represents connected state, connecting state and no > media state respectively. When function detects the current state is > EFI_NOT_READY, it will loop to wait for next time's check until state > turns to be EFI_SUCCESS or EFI_NO_MEDIA. Signed-off-by: Mario Bălănică <[email protected]>
1 parent 118c9c3 commit 0c89a9e

File tree

1 file changed

+1
-1
lines changed
  • edk2-rockchip/Silicon/Synopsys/DesignWare/Drivers/DwcEqosSnpDxe

1 file changed

+1
-1
lines changed

edk2-rockchip/Silicon/Synopsys/DesignWare/Drivers/DwcEqosSnpDxe/EqosUtil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ EqosUpdateLink (
10321032
Eqos->SnpMode.MediaPresent = LinkUp;
10331033
}
10341034

1035-
return LinkUp ? EFI_SUCCESS : EFI_NOT_READY;
1035+
return LinkUp ? EFI_SUCCESS : EFI_NO_MEDIA;
10361036
}
10371037

10381038
EFI_STATUS

0 commit comments

Comments
 (0)