mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-31 11:01:19 +00:00
Request cold reboot when switching to dev mode
When switching from normal to dev mode, the EC is in RO. AP requests warm reboot, whic causes EC to jump to RW. After sysjump, RW tries to renegotiate PD but it's too late for type-c monitor to function because VBIOS has already run. This patch makes AP request EC reboot when switching to dev mode. BUG=b:73083750 BRANCH=none TEST=Dingdong connected to Teemo. Verify norm-to-dev screen is displayed. make -j runtests. Change-Id: I763cd6968406f7b904604b2588a9db6d567cbd4e Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/907734
This commit is contained in:
committed by
chrome-bot
parent
b2846490c3
commit
c7293182ed
@@ -506,7 +506,7 @@ static VbError_t recovery_ui(struct vb2_context *ctx)
|
||||
if (VbExGetSwitches
|
||||
(VB_INIT_FLAG_ALLOW_USB_BOOT))
|
||||
VbAllowUsbBoot(ctx);
|
||||
return VBERROR_REBOOT_REQUIRED;
|
||||
return VBERROR_EC_REBOOT_TO_RO_REQUIRED;
|
||||
case -1:
|
||||
VB2_DEBUG("Shutdown requested\n");
|
||||
return VBERROR_SHUTDOWN_REQUESTED;
|
||||
|
||||
@@ -735,7 +735,7 @@ static void VbBootRecTest(void)
|
||||
mock_keypress[0] = 0x04;
|
||||
mock_keypress[1] = '\r';
|
||||
mock_keyflags[1] = VB_KEY_FLAG_TRUSTED_KEYBOARD;
|
||||
TEST_EQ(VbBootRecovery(&ctx), VBERROR_REBOOT_REQUIRED,
|
||||
TEST_EQ(VbBootRecovery(&ctx), VBERROR_EC_REBOOT_TO_RO_REQUIRED,
|
||||
"Ctrl+D todev confirm");
|
||||
TEST_EQ(virtdev_set, 1, " virtual dev mode on");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user