bloblist: Rename GD_FLG_BLOBLIST_READY to GD_FLG_BLOBLIST_HANDOFF
Now that we have made bloblist have distinct "find" and "create" functions, the global data tag "GD_FLG_BLOBLIST_READY" doesn't quite make sense anymore. Rename it to GD_FLG_BLOBLIST_HANDOFF. Suggested-by: Raymond Mao <raymondmaoca@gmail.com> Reviewed-by: Raymond Mao <raymondmaoca@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
+4
-4
@@ -448,7 +448,7 @@ int bloblist_new(ulong addr, uint size, uint flags, uint align_log2)
|
||||
hdr->align_log2 = align_log2 ? align_log2 : BLOBLIST_BLOB_ALIGN_LOG2;
|
||||
hdr->chksum = 0;
|
||||
gd->bloblist = hdr;
|
||||
gd->flags |= GD_FLG_BLOBLIST_READY;
|
||||
gd->flags |= GD_FLG_BLOBLIST_HANDOFF;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -476,7 +476,7 @@ int bloblist_check(ulong addr, uint size)
|
||||
return log_msg_ret("Bad checksum", -EIO);
|
||||
}
|
||||
gd->bloblist = hdr;
|
||||
gd->flags |= GD_FLG_BLOBLIST_READY;
|
||||
gd->flags |= GD_FLG_BLOBLIST_HANDOFF;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -627,7 +627,7 @@ int bloblist_init(void)
|
||||
int ret;
|
||||
ulong addr = 0, size = CONFIG_BLOBLIST_SIZE;
|
||||
|
||||
if (gd->flags & GD_FLG_BLOBLIST_READY) {
|
||||
if (gd->flags & GD_FLG_BLOBLIST_HANDOFF) {
|
||||
log_debug("Found existing bloblist size %x at %p\n",
|
||||
gd->bloblist->total_size, gd->bloblist);
|
||||
return 0;
|
||||
@@ -689,7 +689,7 @@ int bloblist_check_reg_conv(ulong rfdt, ulong rzero, ulong rsig, ulong xlist)
|
||||
if (rfdt != (ulong)bloblist_find(BLOBLISTT_CONTROL_FDT, 0)) {
|
||||
/* Remove this bloblist from gd */
|
||||
gd->bloblist = NULL;
|
||||
gd->flags &= ~GD_FLG_BLOBLIST_READY;
|
||||
gd->flags &= ~GD_FLG_BLOBLIST_HANDOFF;
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
|
||||
@@ -697,9 +697,9 @@ enum gd_flags {
|
||||
*/
|
||||
GD_FLG_DM_DEAD = 0x400000,
|
||||
/**
|
||||
* @GD_FLG_BLOBLIST_READY: bloblist is ready for use
|
||||
* @GD_FLG_BLOBLIST_HANDOFF: bloblist has been found.
|
||||
*/
|
||||
GD_FLG_BLOBLIST_READY = 0x800000,
|
||||
GD_FLG_BLOBLIST_HANDOFF = 0x800000,
|
||||
/**
|
||||
* @GD_FLG_HUSH_OLD_PARSER: Use hush old parser.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -516,7 +516,7 @@ bool bloblist_exists(void);
|
||||
* If CONFIG_BLOBLIST_PASSAGE_MANDATORY is selected, bloblist in the incoming
|
||||
* standard passage is mandatorily required.
|
||||
*
|
||||
* Sets GD_FLG_BLOBLIST_READY in global_data flags on success
|
||||
* Sets GD_FLG_BLOBLIST_HANDOFF in global_data flags on success
|
||||
*
|
||||
* Return: 0 if OK, -ve on error
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user