diff options
author | Olivier Martin <olivier.martin@arm.com> | 2013-10-21 11:06:51 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-10-21 11:06:51 +0000 |
commit | 4f8c9ae05d699c72fbe4b5bda4b1c64e8c907337 (patch) | |
tree | b5010078835f8f12254b2132e2a7251f77deedf4 /ArmPlatformPkg/Drivers/PL180MciDxe | |
parent | ae26789a50fd7b7cbdcfa0857e5ec55bfaa2d0d9 (diff) | |
download | edk2-platforms-4f8c9ae05d699c72fbe4b5bda4b1c64e8c907337.tar.xz |
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')
-rw-r--r-- | ArmPlatformPkg/Drivers/PL180MciDxe/PL180Mci.c | 2 |
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 {
|