u-boot/arch/arm/mach-imx
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
..
imx8 arm: imx: Check header before calling spl_load_imx_container 2023-10-17 20:50:52 -04:00
imx8m ARM: imx: Add support for detecting primary/secondary bmode on MX8M 2023-10-17 23:55:10 +02:00
imx8ulp event: Convert existing spy records to simple 2023-08-31 13:16:54 -04:00
imx9 Merge branch 'next' 2023-10-02 10:55:44 -04:00
imxrt imx: imxrt1170-evk: Add support for the NXP i.MXRT1170-EVK 2022-09-18 20:42:56 +02:00
mx3 arm: Remove mx31pdk board 2020-07-09 20:58:06 +05:30
mx5 global: Remove extraneous DM_ETH imply/select 2022-12-07 16:04:16 -05:00
mx6 arm: mx6: module_fuse: fix build failure due to wrong argument name 2023-07-11 14:40:02 +02:00
mx7 Revert "arm: imx: mx7: Move CONFIG_OPTEE_TZDRAM_SIZE from lib/optee" 2023-08-28 15:59:22 -04:00
mx7ulp global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00
mxs Kconfig: Remove all default n/no options 2023-10-30 15:32:49 -04:00
cache.c imx: Enable ACTLR.SMP in SPL for i.MX6/7 2022-02-05 13:38:39 +01:00
cmd_bmode.c ARM: imx: Add support for detecting primary/secondary bmode on MX8M 2023-10-17 23:55:10 +02:00
cmd_dek.c arm: imx: Check header before calling spl_load_imx_container 2023-10-17 20:50:52 -04:00
cmd_hdmidet.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
cmd_mfgprot.c global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00
cmd_nandbcb.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
cpu.c ARM: imx: Add weak default reset_cpu() 2023-06-24 13:46:58 -04:00
ddrmc-vf610-calibration.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ddrmc-vf610-calibration.h doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
ddrmc-vf610.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ele_ahab.c arm: imx: Check header before calling spl_load_imx_container 2023-10-17 20:50:52 -04:00
hab.c imx: hab: Explain that ivt_offset is optional 2023-09-23 18:45:34 +02:00
i2c-mxv7.c ARM: imx: imx8mp: Enable support for i2c5 and i2c6 on i.MX8MP 2022-11-07 22:45:05 +01:00
image-container.c u-boot-imx-20231024 2023-10-24 09:39:02 -04:00
imx_bootaux.c imx: imx8: bootaux: Add i.MX8 M4 boot support 2023-07-13 11:29:40 +02:00
init.c ARM: imx: Add support for switching primary/secondary boot mode to bmode 2020-08-17 17:54:01 +02:00
iomux-v3.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig u-boot-imx-20231024 2023-10-24 09:39:02 -04:00
mac.c arm: mach-imx: Update MAC fuse for i.MX8MP 2021-10-21 13:59:26 +02:00
Makefile Move i.MX8 container image loading support to common/spl 2023-10-17 20:50:52 -04:00
misc.c lmb: Remove imx board_lmb_reserve() 2021-09-23 14:15:32 -04:00
mmc_env.c Revert "imx: mmc_env: update runtime SD/MMC boot env device" 2019-10-08 16:36:37 +02:00
mmdc_size.c arm/mach-imx: Fix macros in mmdc_size.c 2021-07-10 16:53:34 +02:00
priblob.c imx: priblob: Update to use structure 2023-07-13 11:29:40 +02:00
rdc-sema.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
romapi.c imx: fix get_boot_device() for imx8 2023-05-02 10:57:32 +02:00
sata.c arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
speed.c global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00
spl.c imx: hab: Use size parameter 2023-10-16 16:25:09 +02:00
spl_imx_romapi.c imx: spl_imx_romapi: fix emmc fast boot mode case 2023-11-17 11:58:26 -05:00
spl_qspi.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
spl_sd.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
syscounter.c imx: syscounter: allow timer_init for SPL build 2023-10-16 08:46:01 +02:00
timer.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
video.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00