summaryrefslogtreecommitdiffstats
path: root/ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@arm.com>2013-10-21 11:06:51 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2013-10-21 11:06:51 +0000
commit4f8c9ae05d699c72fbe4b5bda4b1c64e8c907337 (patch)
treeb5010078835f8f12254b2132e2a7251f77deedf4 /ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c
parentae26789a50fd7b7cbdcfa0857e5ec55bfaa2d0d9 (diff)
downloadedk2-4f8c9ae05d699c72fbe4b5bda4b1c64e8c907337.tar.gz
edk2-4f8c9ae05d699c72fbe4b5bda4b1c64e8c907337.tar.bz2
edk2-4f8c9ae05d699c72fbe4b5bda4b1c64e8c907337.zip
ArmPlatformPkg/PL180MciDxe: Fixed check for space in transmit FIFO
This patch prevents a buffer underrun error on the Versatile Express Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14793 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c')
-rw-r--r--ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c2
1 files changed, 1 insertions, 1 deletions
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 {