]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: Add callbacks to invalidate cached devices
authorSean Anderson <seanga2@gmail.com>
Sat, 14 Oct 2023 20:47:54 +0000 (16:47 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 18 Oct 2023 00:50:52 +0000 (20:50 -0400)
commit93caa3efe25bb9d3e6265aa467dc5b6a2201819b
tree02c637fb5f2b374d5f6d2092aff3ce9273446204
parentacb96c170d7c9f9aed1755efe56387127a7dff0b
spl: Add callbacks to invalidate cached devices

Several SPL functions try to avoid performing initialization twice by
caching devices. This is fine for regular boot, but does not work with
UNIT_TEST, since all devices are torn down after each test. Add some
functions to invalidate the caches which can be called before testing these
load methods.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
common/spl/spl_fat.c
common/spl/spl_mmc.c
include/spl.h