EmbeddedPkg/Lan9118Dxe: Handle EFI_STATUS from PhySoftReset() & SoftReset()

- Make the function PhySoftReset() return EFI_STATUS
- EFI_STATUS was treated as a signed integer by the caller which is not correct.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>



git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15630 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Olivier Martin
2014-07-04 14:47:11 +00:00
committed by oliviermartin
parent 42de09370f
commit 42589b9ac9
3 changed files with 38 additions and 25 deletions

View File

@@ -485,7 +485,7 @@ SoftReset (
// Perform PHY software reset
INT32
EFI_STATUS
PhySoftReset (
UINT32 Flags,
EFI_SIMPLE_NETWORK_PROTOCOL *Snp
@@ -524,7 +524,7 @@ PhySoftReset (
// Timed out
if (LinkTo <= 0) {
return -1;
return EFI_TIMEOUT;
}
}
@@ -535,7 +535,7 @@ PhySoftReset (
MmioWrite32 (LAN9118_INT_STS, 0xFFFFFFFF);
}
return 0;
return EFI_SUCCESS;
}