Files
OpenCellular/tests
Randall Spangler 886a9047f0 Software sync checks for shutdown-requested in all code paths
Previously,
1) AP-RO, EC-RO -> checked
2) AP-RW, EC-RO transition to EC-RW -> checked
3) AP-RW, EC-RW already -> NOT checked

Now, (3) calls VbExIsShutdownRequested() as well.

This fix is needed to avoid inconsistent behavior of software sync
after we ship a RW update.

Whether we *should* actually shut down or not based on how/why we
booted is a separate issue to be addressed by the U-boot
implementation of VbExIsShutdownRequested() in a separate CL.

BUG=chromium-os:38645
BRANCH=all
TEST=make runtests

Manual testing also possible - force AP-RW firmware, then reboot with
lid closed.  Previously, the first boot would shut down because of
(2), but subsequent reboots of the AP only wouldn't because of (3).

Change-Id: I226202f48d793b88a30ffa62731de878f8c22315
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/43044
Reviewed-by: Simon Glass <sjg@chromium.org>
2013-02-12 10:35:12 -08:00
..
2010-09-29 20:25:29 -07:00
2010-09-29 20:25:29 -07:00
2013-01-24 16:46:52 -08:00
2010-05-27 09:20:11 -07:00
2011-09-01 09:04:46 -07:00
2010-03-31 10:56:49 -07:00
2010-09-29 20:25:29 -07:00
2010-03-31 10:56:49 -07:00
2010-02-12 11:21:18 -08:00
2013-01-31 09:38:27 -08:00
2013-02-11 15:34:45 -08:00