]> git.baikalelectronics.ru Git - uboot.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)
commitf6729aceea2627b8e7bd19adc6ac558a3ea1b922
tree02f9b94fbffbb3cc283ca5eabb93d45bf5b9397b
parent7705e367e2721b2f4f77396708df95398100a0b7
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