diff options
-rw-r--r-- | firmware/lib/ec_sync.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/lib/ec_sync.c b/firmware/lib/ec_sync.c index 83ad8025..afa6f1e7 100644 --- a/firmware/lib/ec_sync.c +++ b/firmware/lib/ec_sync.c @@ -255,6 +255,9 @@ static VbError_t sync_one_ec(struct vb2_context *ctx, int devidx) * TODO: Switch slot and proceed if EC is still in RO. */ if (is_rw_ab) { VB2_DEBUG("Rebooting to jump to new EC-RW\n"); + /* Since we're rebooting, ec_sync_all won't be given a + * chance to clear the flag. Need to clear it here. */ + vb2_nv_set(ctx, VB2_NV_OPROM_NEEDED, 0); return VBERROR_EC_REBOOT_TO_SWITCH_RW; } } |