[edk2-devel] [edk2-platforms][PATCH 2/4] RPi: fix MmcTransferBlock (writes) regression for eMMC
Andrei Warkentin
andrey.warkentin at gmail.com
Thu Apr 30 09:26:50 UTC 2020
Way back when I added write block validation (https://github.com/andreiw/RaspberryPiPkg/commit/bdea35dc3f1652bf7b17505a20a5f52f7fde9707),
I had screwed the logic up breaking eMMC.
This starts to matter on the CM3, which has eMMC.
Signed-off-by: Andrei Warkentin <andrey.warkentin at gmail.com>
---
Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c b/Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c
index 29a9fd7d..8a2f7f42 100644
--- a/Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c
+++ b/Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c
@@ -47,6 +47,7 @@ ValidateWrittenBlockCount (
/*
* Not on MMC.
*/
+ *TransferredBlocks = Count;
return EFI_SUCCESS;
}
--
2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#58421): https://edk2.groups.io/g/devel/message/58421
Mute This Topic: https://groups.io/mt/73371877/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list