Reviewed-by: Feng Tian <[email protected]>

-----Original Message-----
From: edk2-devel [mailto:[email protected]] On Behalf Of Samer 
El-Haj-Mahmoud
Sent: Tuesday, December 22, 2015 5:45 AM
To: [email protected]
Cc: Samer El-Haj-Mahmoud; Tian, Feng
Subject: [edk2] [PATCH] MdeModulePkg: Add error DEBUG statements in Ata bus 
driver

DEBUG errors for COMRESET and Port phy not ready.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud <[email protected]>
---
 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c 
b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
index 4d1b584..f64a340 100644
--- a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
+++ b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
@@ -2,6 +2,7 @@
   The file for AHCI mode of ATA host controller.
 
   Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
+  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD 
License
   which accompanies this distribution.  The full text of the license may be 
found at @@ -1407,6 +1408,7 @@ AhciPortReset (
              );
 
   if (EFI_ERROR (Status)) {
+    DEBUG ((EFI_D_ERROR, "Port %d COMRESET failed: %r\n", Port, 
+ Status));
     return Status;
   }
 
@@ -2401,6 +2403,7 @@ AhciModeInitialization (
       } while (PhyDetectDelay > 0);
 
       if (PhyDetectDelay == 0) {
+        DEBUG ((EFI_D_ERROR, "Port %d Device presence detected but phy 
+ not ready (TFD=0x%X)\n", Port, Data));
         continue;
       }
 
--
2.6.3.windows.1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to