]> git.ipfire.org Git - thirdparty/u-boot.git/commit
spl: mmc: Fix subsequent calls to spl_mmc_load with CONFIG_BLK
authorSean Anderson <seanga2@gmail.com>
Sun, 8 Oct 2023 01:47:48 +0000 (21:47 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 18 Oct 2023 00:50:52 +0000 (20:50 -0400)
commita0733b3c66fceba34e5fad2c84ccbfa79ede00f3
tree16453459fbda97d69ee587adfa30bff3f8dd48e6
parente65b5d35c9116485366bb08138043d51220551da
spl: mmc: Fix subsequent calls to spl_mmc_load with CONFIG_BLK

MMC devices do not have uclass platdata containing blk_descs, only their
child block devices do. Fortunately, we have a function just for this
purpose. This fixes subsequent calls to spl_mmc_load.

Fixes: bf28d9a6599 ("spl: mmc: Use correct MMC device when loading image")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
common/spl/spl_mmc.c