[edk2] [platforms: PATCH 04/10] Platform/Marvell: ComPhyLib: Mark failing lane as unconnected

Marcin Wojtas posted 10 patches 7 years, 5 months ago
There is a newer version of this series
[edk2] [platforms: PATCH 04/10] Platform/Marvell: ComPhyLib: Mark failing lane as unconnected
Posted by Marcin Wojtas 7 years, 5 months ago
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>
---
 Platform/Marvell/Library/ComPhyLib/ComPhyCp110.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Platform/Marvell/Library/ComPhyLib/ComPhyCp110.c b/Platform/Marvell/Library/ComPhyLib/ComPhyCp110.c
index cee7519..ee3ce99 100755
--- a/Platform/Marvell/Library/ComPhyLib/ComPhyCp110.c
+++ b/Platform/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;
     }
   }
 }
-- 
2.7.4

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel