]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: Refactor spl_load_info->read to use units of bytes
authorSean Anderson <seanga2@gmail.com>
Wed, 8 Nov 2023 16:48:40 +0000 (11:48 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 16 Nov 2023 18:49:14 +0000 (13:49 -0500)
commit73c40fcb7367f5a431c987f7da0420c058a939fc
treeafd19a4c46fbf50ee3d4dd2fb323da03bc28ac56
parent33c8d01a4d20ab1f7cb59bd9860e42196d6ddb4e
spl: Refactor spl_load_info->read to use units of bytes

Simplify things a bit for callers of spl_load_info->read by refactoring it
to use units of bytes instead of bl_len. This generally simplifies the
logic, as MMC is the only loader which actually works in sectors. It will
also allow further refactoring to remove the special-case handling of
filename.  spl_load_legacy_img already works in units of bytes (oops) so it
doesn't need to be changed.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-imx/spl_imx_romapi.c
common/spl/spl_fit.c
common/spl/spl_imx_container.c
common/spl/spl_mmc.c
common/spl/spl_nand.c
include/spl.h
test/image/spl_load_os.c