aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@semihalf.com>2017-04-01 12:35:56 +0200
committerLeif Lindholm <leif.lindholm@linaro.org>2017-07-07 15:26:30 +0100
commit63ee6f2dfd163df56e09c9a9bb2e7d5a3811bddc (patch)
tree70894883170a4916acfdb2eec80a64adaeb09af1
parente9c7cc4d28cbb65b41914a4f6261b987529da11b (diff)
Platform/Marvell: ComPhyLib: Mark failing lane as unconnected
In case of an error during initialization, setting PHY_TYPE_UNCONNECTED will allow to present proper information of the lane status. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
-rwxr-xr-xPlatforms/Marvell/Library/ComPhyLib/ComPhyCp110.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Platforms/Marvell/Library/ComPhyLib/ComPhyCp110.c b/Platforms/Marvell/Library/ComPhyLib/ComPhyCp110.c
index cee7519..ee3ce99 100755
--- a/Platforms/Marvell/Library/ComPhyLib/ComPhyCp110.c
+++ b/Platforms/Marvell/Library/ComPhyLib/ComPhyCp110.c
@@ -1051,6 +1051,7 @@ ComPhyCp110Init (
}
if (EFI_ERROR(Status)) {
DEBUG ((DEBUG_ERROR, "Failed to initialize Lane %d\n with Status = 0x%x", Lane, Status));
+ PtrComPhyMap->Type = PHY_TYPE_UNCONNECTED;
}
}
}