This series improves the FWU (Firmware Update) subsystem's handling of
boot failures by properly marking failed banks as invalid during rollback.

Patch 1 refactors fwu_state_machine_updates() to use an enum instead of
a boolean, adding support for FWU_BANK_INVALID state.

Patch 2 detects rollback at boot time (when boot_idx != active_idx) and
marks the failed bank as invalid to prevent future boot attempts.

Changes in v2:
- Refactors fwu_state_machine_updates() to use enum as parameter instead
  of adding a new fwu_invalid_bank() helper.

Kory Maincent (2):
  fwu: Pass bank state enum to fwu_state_machine_updates()
  fwu: Mark failed bank as invalid during rollback

 include/fwu.h                | 22 ++++++++--------
 lib/efi_loader/efi_capsule.c |  5 ++--
 lib/fwu_updates/fwu.c        |  6 +++++
 lib/fwu_updates/fwu_v1.c     | 16 ++++++------
 lib/fwu_updates/fwu_v2.c     | 50 +++++++++++++++---------------------
 5 files changed, 50 insertions(+), 49 deletions(-)

-- 
2.43.0

Reply via email to