]> git.dujemihanovic.xyz Git - u-boot.git/commit
fwu: meta-data: switch to management by common code
authorJassi Brar <jaswinder.singh@linaro.org>
Mon, 6 Mar 2023 23:18:41 +0000 (17:18 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 9 Jun 2023 17:52:40 +0000 (13:52 -0400)
commit246ec2a12c437ff821e452104f3f564e5d25fa91
treebd9fa8bf397e9ba9b0e9c4664099336db822ef2c
parent3733e16925ec7470d93dff7209ef881ea7d95dd2
fwu: meta-data: switch to management by common code

The common code can now read, verify and fix meta-data copies
while exposing one consistent structure to users.
 Only the .read_mdata() and .write_mdata() callbacks of fwu_mdata_ops
are needed. Get rid of .get_mdata() .update_mdata() .get_mdata_part_num()
.read_mdata_partition() and .write_mdata_partition() and also the
corresponding wrapper functions.

Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Sughosh Ganu <sughosh.ganu@linaro.org>
cmd/fwu_mdata.c
drivers/fwu-mdata/fwu-mdata-uclass.c
drivers/fwu-mdata/gpt_blk.c
include/fwu.h
lib/fwu_updates/fwu.c