On Wed, 8 Nov 2023 at 09:49, Sean Anderson <[email protected]> wrote: > > 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 <[email protected]> > --- > > Changes in v7: > - Reword documentation for spl_load_info > > Changes in v6: > - New > > arch/arm/mach-imx/spl_imx_romapi.c | 16 +++------- > common/spl/spl_fit.c | 51 +++++++++++++++--------------- > common/spl/spl_imx_container.c | 45 +++++++++++--------------- > common/spl/spl_mmc.c | 24 ++++++++------ > common/spl/spl_nand.c | 8 ++--- > include/spl.h | 18 +++++++---- > test/image/spl_load_os.c | 13 ++++---- > 7 files changed, 82 insertions(+), 93 deletions(-)
Reviewed-by: Simon Glass <[email protected]>

