]> git.dujemihanovic.xyz Git - u-boot.git/commit
capsule: fwu: transition the platform state on a successful update
authorSughosh Ganu <sughosh.ganu@linaro.org>
Fri, 22 Mar 2024 10:57:22 +0000 (16:27 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 24 May 2024 19:40:04 +0000 (13:40 -0600)
commit5a5c4dedd3b15f75f3dae490c79b1691adc085e4
treeea5c5a5fa9bd22643a561717f3d45fe15a7c0d87
parentac62e0b62e02be0bb8c5f0d0dd49fa9bda91d5c5
capsule: fwu: transition the platform state on a successful update

Transition the platform to either Trial State or Regular State on a
successful update. Do this by calling the fwu_state_machine_updates()
API function.

For version 1 of the FWU metadata, the transition to Trial State is
done by starting the Trial State counter, while for version 2, in
addition to the counter, the bank_state field of the FWU metadata is
also updated to Valid.

For transitioning the platform to Regular State, no action is needed
with version 1 of the FWU metadata structure, while for version 2, the
bank_state field is set to Accepted.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Tested-by: Michal Simek <michal.simek@amd.com>
lib/efi_loader/efi_capsule.c