]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: fwu: add the size parameter to the metadata access API's
authorSughosh Ganu <sughosh.ganu@linaro.org>
Fri, 22 Mar 2024 10:57:16 +0000 (16:27 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 24 May 2024 19:40:03 +0000 (13:40 -0600)
commitf42a61f57f69c9fac1e21cbfde3f40ebdadc518b
tree02906bb961b9537a9765dd301fea9e249442d6ed
parentd99127a69ebf65cd35c33896ea6f4b45b77b8c82
drivers: fwu: add the size parameter to the metadata access API's

In version 2 of the metadata structure, the size of the structure
cannot be determined statically at build time. The structure is now
broken into the top level structure which contains a field indicating
the total size of the structure.

Add a size parameter to the metadata access API functions to indicate
the number of bytes to be accessed. This is then used to either read
the entire structure, or only the top level structure.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Tested-by: Michal Simek <michal.simek@amd.com>
drivers/fwu-mdata/fwu-mdata-uclass.c
drivers/fwu-mdata/gpt_blk.c
drivers/fwu-mdata/raw_mtd.c
include/fwu.h