ec_sync: always call VbExUpdateAuxFw
call VbExUpdateAuxFw() uncontidionally, instead of when we know we
need to do an update. Vb*AuxFw() already maintains state, so this
doesn't change when we (attempt) to update firmware.
however, this does allow us to iterate over all firmware drivers to
call their .protect() method. previously, we would only call
.protect() after an actual firmware update.
updated unit tests to match the new logic.
TEST=verified i2c tunnels are protected on reef using
ectool i2cprotect N status.
Signed-off-by: Caveh Jalali <firstname.lastname@example.org>
Reviewed-by: Julius Werner <email@example.com>
(cherry picked from commit 5afa7faf7bfc4ec5efd22af5f2124a575bc64e52)
Reviewed-by: Caveh Jalali <firstname.lastname@example.org>
Commit-Queue: Caveh Jalali <email@example.com>
Tested-by: Caveh Jalali <firstname.lastname@example.org>
2 files changed