The commit b81e31a1e6c5 ("bootstash: Do not provide a default address
for all") changed a bootstage unstash call to bootstage stash, this
has resulted in bootstage records stashed in SPL no longer get unstaged
in U-Boot proper. Fix this by changing back to a unstage call.

Fixes: b81e31a1e6c5 ("bootstash: Do not provide a default address for all")
Signed-off-by: Jonas Karlman <jo...@kwiboo.se>
---
 common/board_f.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/board_f.c b/common/board_f.c
index 21a8944e2b0f..0b017ee12a7c 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -804,7 +804,7 @@ static int initf_bootstage(void)
        if (ret)
                return ret;
        if (from_spl) {
-               ret = bootstage_stash_default();
+               ret = bootstage_unstash_default();
                if (ret && ret != -ENOENT) {
                        debug("Failed to unstash bootstage: err=%d\n", ret);
                        return ret;
-- 
2.45.2

Reply via email to