]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: spl_legacy: Fix NAND boot on OMAP3 BeagleBoard
authorRoger Quadros <rogerq@kernel.org>
Thu, 29 Sep 2022 10:11:28 +0000 (13:11 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 26 Oct 2022 19:20:47 +0000 (15:20 -0400)
commit06377c5a1fce4d1e9b7a5dfb62a66c4fe0c076ce
tree02f9b94fbffbb3cc283ca5eabb93d45bf5b9397b
parent0abe3323f5062032f8deb71cdc0635b124855d16
spl: spl_legacy: Fix NAND boot on OMAP3 BeagleBoard

OMAP3 BeagleBoard NAND boot hangs when spl_load_legacy_img() tries
to read the header into 'struct hdr' which is allocated on the
stack.

As the header has already been read once before by spl_nand.c,
we can avoid the extra header allocation and read here by
simply passing around the pointer to the header.

This fixes NAND boot on OMAP3 BeagleBoard.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-By: Michael Trimarchi <michael@amarulasolutions.com>
common/spl/spl_legacy.c
common/spl/spl_nand.c
common/spl/spl_nor.c
include/spl.h