]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.c
MdeModulePkg/AtaAtapiPassThru: Revert patch to disable Bus Master
[mirror_edk2.git] / MdeModulePkg / Bus / Ata / AtaAtapiPassThru / AtaAtapiPassThru.c
index e10e0d4e65f6b2fb3af03b781adbd1851e622850..09064dda18b70753d6a100ad21e9855c90291e78 100644 (file)
@@ -480,7 +480,8 @@ InitializeAtaAtapiPassThru (
 }\r
 \r
 /**\r
 }\r
 \r
 /**\r
-  Disable Bus Master DMA on the device when exiting the boot services.\r
+  Disable the device (especially Bus Master DMA) when exiting the boot\r
+  services.\r
 \r
   @param[in] Event    Event for which this notification function is being\r
                       called.\r
 \r
   @param[in] Event    Event for which this notification function is being\r
                       called.\r
@@ -505,7 +506,7 @@ AtaPassThruExitBootServices (
   PciIo->Attributes (\r
            PciIo,\r
            EfiPciIoAttributeOperationDisable,\r
   PciIo->Attributes (\r
            PciIo,\r
            EfiPciIoAttributeOperationDisable,\r
-           Instance->EnabledPciAttributes & EFI_PCI_IO_ATTRIBUTE_BUS_MASTER,\r
+           Instance->EnabledPciAttributes,\r
            NULL\r
            );\r
 }\r
            NULL\r
            );\r
 }\r