diff mbox

[edk2,2/3] ArmPlatformPkg/PL180MciDxe: warn on probe fail

Message ID 1456853207-937-3-git-send-email-ryan.harkin@linaro.org
State Accepted
Commit b5ffaf7d70e2a6e39798b9d8bedfb7a1d6dd2902
Headers show

Commit Message

Ryan Harkin March 1, 2016, 5:26 p.m. UTC
If the PL180 fails to probe, issue a warning on debug builds.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>

---
 ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.5.0

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

Patch

diff --git a/ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c b/ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c
index 688cd8a..3e94ea5 100644
--- a/ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c
+++ b/ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c
@@ -534,6 +534,8 @@  PL180MciDxeInitialize (
       MmioRead8 (MCI_PCELL_ID_REG2)  != MCI_PCELL_ID2  ||
       MmioRead8 (MCI_PCELL_ID_REG3)  != MCI_PCELL_ID3) {
 
+    DEBUG ((EFI_D_WARN, "Probing ID registers at 0x%lx for a PL180"
+      " failed\n", MCI_PERIPH_ID_REG0));
     return EFI_NOT_FOUND;
   }