u-boot/arch
Marcel Ziswiler ac33a7976a imx: spl_imx_romapi: fix emmc fast boot mode case
This fixes a regression in the eMMC fast boot mode case where the buffer
was missing 464 bytes.

The code figures out how many bytes must at least be fetched to honor
the current read, rounds that up to the ss->pagesize [which is a no-op
in the USB download case because that has ->pagesize==1], fetches that
many bytes, but then recorded the original upper bound as the new end of
the valid data. However, this did not take into account the rounding up
to the ss->pagesize. Fix this by recording the actual bytes downloaded.

Fixes: 4b4472438f ("imx: spl_imx_romapi: avoid tricky use of spl_load_simple_fit() to get full FIT size")
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
2023-11-17 11:58:26 -05:00
..
arc arc: Remove common.h usage 2023-10-24 16:34:45 -04:00
arm imx: spl_imx_romapi: fix emmc fast boot mode case 2023-11-17 11:58:26 -05:00
m68k Kconfig: Remove all default n/no options 2023-10-30 15:32:49 -04:00
microblaze microblaze: Remove common.h usage 2023-10-24 16:34:45 -04:00
mips bmips: Add Inteno XG6846 board 2023-11-06 10:20:21 -05:00
nios2 event: Convert existing spy records to simple 2023-08-31 13:16:54 -04:00
powerpc mpc85xx: relocate code in non-SPL build 2023-10-28 09:17:55 -04:00
riscv riscv: dts: jh7110: Add rng device tree node 2023-11-02 17:45:53 +08:00
sandbox sandbox: Close file after mmaping it 2023-11-14 20:04:01 -07:00
sh spl: Use SYS_MALLOC_F instead of SYS_MALLOC_F_LEN 2023-10-06 14:38:12 -04:00
x86 common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
xtensa treewide: unify the linker symbol reference format 2023-08-09 09:21:42 -04:00
.gitignore
Kconfig cmd: mbr: Allow 4 MBR partitions without need for extended 2023-10-24 17:05:24 -04:00
Kconfig.nxp LFU-544: Kconfig.nxp: Fixed secure boot on LS-CH2 platforms 2023-07-06 13:04:56 +08:00
u-boot-elf.lds