diff --git a/ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c b/ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c index db8b29fac3..f7a4d44311 100644 --- a/ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c +++ b/ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c @@ -336,7 +336,7 @@ MciWriteBlockData ( Loop++; MmioWrite32(MCI_FIFO_REG, Buffer[Loop]); Loop++; - } else if ((Status & MCI_STATUS_CMD_TXFIFOEMPTY)) { + } else if (!(Status & MCI_STATUS_CMD_TXFIFOFULL)) { MmioWrite32(MCI_FIFO_REG, Buffer[Loop]); Loop++; } else {