]> git.dujemihanovic.xyz Git - u-boot.git/commit
nand: spl_loaders: Only read enough pages to load the image
authorSean Anderson <seanga2@gmail.com>
Sat, 4 Nov 2023 20:37:42 +0000 (16:37 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 16 Nov 2023 17:43:48 +0000 (12:43 -0500)
commitcdc0434ac06ad5cc0cb8361dcd5d4ab72a8db0c7
tree86adfd4598c6e21b39f783ee405abbf7d6f8886b
parent601b8901e058e524a57c7590020dc68193c2f9aa
nand: spl_loaders: Only read enough pages to load the image

All other implementations of nand_spl_load_image only read as many pages as
are necessary to load the image. However, nand_spl_loaders.c loads the full
block. Align it with other load functions so that it is easier to
determine how large of a load buffer we need.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
drivers/mtd/nand/raw/nand_spl_loaders.c