]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c
Remove the hard-code IoAlign in BlockIo.Media; instead, this value should inherit...
[mirror_edk2.git] / MdeModulePkg / Bus / Ata / AtaBusDxe / AtaPassThruExecute.c
index f4388a6c440b741fc400ff044290fcc33e5edc89..05496a9d1682fce5020414f621c667f251026042 100644 (file)
@@ -289,6 +289,7 @@ IdentifyAtaDevice (
   //\r
   BlockMedia = &AtaDevice->BlockMedia;\r
   BlockMedia->LastBlock = Capacity - 1;\r
+  BlockMedia->IoAlign = AtaDevice->AtaBusDriverData->AtaPassThru->Mode->IoAlign;\r
   //\r
   // Check whether Long Physical Sector Feature is supported\r
   //\r