summaryrefslogtreecommitdiffstats
path: root/EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c
diff options
context:
space:
mode:
authorRonald Cron <ronald.cron@arm.com>2014-11-11 00:49:50 +0000
committeroliviermartin <oliviermartin@Edk2>2014-11-11 00:49:50 +0000
commit6382e5df4e320b8b7db40bccbeccbd89d368d52f (patch)
tree6ccc1305cea4ec9da22e0846a2f3209d1a226ae8 /EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c
parentbb5420bb2b5fa146de1ddf2da5932b214e5743a9 (diff)
downloadedk2-6382e5df4e320b8b7db40bccbeccbd89d368d52f.tar.gz
edk2-6382e5df4e320b8b7db40bccbeccbd89d368d52f.tar.bz2
edk2-6382e5df4e320b8b7db40bccbeccbd89d368d52f.zip
EmbeddedPkg/Lan9118Dxe: Remove link check in SNP initialization
The UEFI specification does not require the initialisation and reset interface to check if an Ethernet cable is connected or not, and provides the GetStatus() interface to do this. Furthermore, the 'Managed Network Protocol' take care of the cable connection check in edk2 network stack. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron <ronald.cron@arm.com> Reviewed-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16326 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c')
-rw-r--r--EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c b/EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c
index 60b8c96dda..0503dbce1e 100644
--- a/EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c
+++ b/EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c
@@ -283,7 +283,7 @@ SnpInitialize (
}
// Initiate a PHY reset
- Status = PhySoftReset (PHY_RESET_PMT | PHY_RESET_CHECK_LINK, Snp);
+ Status = PhySoftReset (PHY_RESET_PMT, Snp);
if (EFI_ERROR (Status)) {
Snp->Mode->State = EfiSimpleNetworkStopped;
DEBUG ((EFI_D_WARN, "Warning: Link not ready after TimeOut. Check ethernet cable\n"));
@@ -403,7 +403,7 @@ SnpReset (
}
// Initiate a PHY reset
- Status = PhySoftReset (PHY_RESET_PMT | PHY_RESET_CHECK_LINK, Snp);
+ Status = PhySoftReset (PHY_RESET_PMT, Snp);
if (EFI_ERROR (Status)) {
Snp->Mode->State = EfiSimpleNetworkStopped;
return EFI_NOT_STARTED;