Browse Source

Platform/RaspberryPi: fix MmcTransferBlock (writes) regression for eMMC

Way back when I added write block validation [0], I had screwed the
logic up, breaking eMMC.

This starts to matter on the CM3, which has eMMC.

[0] https://github.com/andreiw/RaspberryPiPkg/commit/bdea35dc3f1652bf

Signed-off-by: Andrei Warkentin <andrey.warkentin@gmail.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Andrei Warkentin 4 years ago
parent
commit
5290bbe34c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c

+ 1 - 0
Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c

@@ -47,6 +47,7 @@ ValidateWrittenBlockCount (
     /*
      * Not on MMC.
      */
+    *TransferredBlocks = Count;
     return EFI_SUCCESS;
   }