]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Add error DEBUG statements in ATA passthru driver
authorSamer El-Haj-Mahmoud <elhaj@hpe.com>
Wed, 6 Jan 2016 02:49:47 +0000 (02:49 +0000)
committererictian <erictian@Edk2>
Wed, 6 Jan 2016 02:49:47 +0000 (02:49 +0000)
DEBUG errors for COMRESET and Port phy not ready.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud <elhaj@hpe.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19605 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c

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