Revert "common: lid: remove lid_open when enable_lid_detect"

This reverts commit 803c69823d.

Reason for revert: when disable lid detection, we should keep lid open to make dut work normal.

Original change's description:
> common: lid: remove lid_open when enable_lid_detect
>
> when enabling lid detect function after hibernate, if
> excuted lid_open would cause the test dut boot up. so
> remove the lid open function during enable lid detect.
>
> BUG=b:308806675
> TEST=1.zmake build ciri pass 2.plugin adapter to wake hibernate,
> ciri can keep G3 state.
>
> Change-Id: I9d8696744d41fca7e756813cd9a5c8c9428cd420
> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/5119145
> Reviewed-by: Eric Yilun Lin <yllin@google.com>
> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
> Reviewed-by: Ting Shen <phoenixshen@chromium.org>
> Reviewed-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com>
> Reviewed-by: Knox Chiou <knoxchiou@chromium.org>
> Tested-by: Mike Lee <mike5@huaqin.corp-partner.google.com>
> Commit-Queue: Mike Lee <mike5@huaqin.corp-partner.google.com>

BUG=b:333508045
TEST=test lid close and detach base, the dut can work normal.

Change-Id: I871df24a6f56858e3b45329b1c3b5dbd83d70c17
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/5454732
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com>
Tested-by: Mike Lee <mike5@huaqin.corp-partner.google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Mike Lee <mike5@huaqin.corp-partner.google.com>
This commit is contained in:
Mike Lee 2024-04-15 15:25:56 +00:00 committed by Chromeos LUCI
parent 8c90db9533
commit 7620c747b6
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ void enable_lid_detect(bool enable)
#define LID_GPIO(gpio) gpio_disable_interrupt(gpio);
CONFIG_LID_SWITCH_GPIO_LIST
#undef LID_GPIO
lid_switch_open();
}
}