diff options
author | Samer El-Haj-Mahmoud <elhaj@hpe.com> | 2016-01-06 02:49:47 +0000 |
---|---|---|
committer | erictian <erictian@Edk2> | 2016-01-06 02:49:47 +0000 |
commit | 9c32277a3f9dd7df6a71d544caffc90aab5f8e48 (patch) | |
tree | 28b743169d7bef3410d7bcbee2f3955b7a8b811b /MdeModulePkg | |
parent | 64957e357bca8d1f9fec2fabaa7aa9a3a8721f1f (diff) | |
download | edk2-platforms-9c32277a3f9dd7df6a71d544caffc90aab5f8e48.tar.xz |
MdeModulePkg: Add error DEBUG statements in ATA passthru driver
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c index 4d1b5848a5..f64a3407e4 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;
}
|