[PATCH v1 2/2] imx: spl_imx_romapi: fix emmc fast boot mode case
Marcel Ziswiler
marcel.ziswiler at toradex.com
Mon Nov 20 09:08:08 CET 2023
On Fri, 2023-11-17 at 14:42 -0500, Tom Rini wrote:
> On Thu, Oct 26, 2023 at 09:32:20AM +0200, Marcel Ziswiler wrote:
>
> > From: Marcel Ziswiler <marcel.ziswiler at toradex.com>
> >
> > 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: 4b4472438f5a ("imx: spl_imx_romapi: avoid tricky use of spl_load_simple_fit() to get full FIT size")
> > Signed-off-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
> > Acked-by: Rasmus Villemoes <rasmus.villemoes at prevas.dk>
> > Reviewed-by: Fabio Estevam <festevam at gmail.com>
>
> Applied to u-boot/master, thanks!
Finally our weekly master/upstream CI is passing on all i.MX 8M Plus SKUs again!
Thanks!
Cheers
Marcel
More information about the U-Boot
mailing list