[Concept,1/4] vbe: abrec: Use unique log_msg_ret() tag for blk_get_from_parent()

Message ID 20260329122222.3533806-2-sjg@u-boot.org
State New
Headers
Series vbe: Fix MMC clock handoff for VPL on rk3399 |

Commit Message

Simon Glass March 29, 2026, 12:22 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

Both abrec_read_bootflow_fw() and abrec_load_from_image() use the "med"
tag for their blk_get_from_parent() call, making it impossible to
distinguish which function is returning the error. Change the one in
abrec_load_from_image() to "blk" so the two call sites can be told
apart.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 boot/vbe_abrec_fw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/boot/vbe_abrec_fw.c b/boot/vbe_abrec_fw.c
index b3786da8477..eb22ee43495 100644
--- a/boot/vbe_abrec_fw.c
+++ b/boot/vbe_abrec_fw.c
@@ -249,7 +249,7 @@  static int abrec_load_from_image(struct spl_image_info *image,
 			return log_msg_ret("vdv", ret);
 		ret = blk_get_from_parent(media, &blk);
 		if (ret)
-			return log_msg_ret("med", ret);
+			return log_msg_ret("blk", ret);
 
 		if (xpl_phase() == PHASE_TPL) {
 			ulong offset, size;