]> git.baikalelectronics.ru Git - uboot.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)
commit1be2fb889e2e30fcb68e6877048abe7140b4ebdd
treebd9fa8bf397e9ba9b0e9c4664099336db822ef2c
parentbad49b1e120344196462211fe1ddfc2b4620cee8
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