mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/Ide: return correct status when DRQ is not ready for ATAPI
When executing ATAPI cmd at IDE mode, EFI_SUCCESS may be returned wrongly with old logic but in fact DRQ is not ready and the transaction doesn't get executed correctly at this time. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19611 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
bdc063e134
commit
7cac240163
|
@ -1949,7 +1949,7 @@ AtaPacketReadWrite (
|
||||||
//
|
//
|
||||||
Status = DRQReady2 (PciIo, IdeRegisters, Timeout);
|
Status = DRQReady2 (PciIo, IdeRegisters, Timeout);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
return CheckStatusRegister (PciIo, IdeRegisters);
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue