summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2020-10-22 14:53:08 -0600
committerCommit Bot <commit-bot@chromium.org>2020-11-02 19:23:28 +0000
commit0480363ef958380afc64d0f86cdeee4a48ab74f6 (patch)
tree542493522bc9d50e592a2ba438103ec0e8bf4237 /common
parent13323e77ff91a85154cfa5f504ed4609fb8cbfc7 (diff)
downloadchrome-ec-0480363ef958380afc64d0f86cdeee4a48ab74f6.tar.gz
tcpmv2: extended unlocked exception to battery removal
When the battery is removed and that is also tied to write protect, allow EFS2 device to get a higher power contract even if the EC-CR50 communication failed. BRANCH=none BUG=b:168521645 TEST=morphius is able to boot to recovery screen with battery unplugged Signed-off-by: Jett Rink <jettrink@chromium.org> Change-Id: Idcc80beeb0364264adcb21e2eaf2c44e366460f8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2493104 Reviewed-by: Edward Hill <ecgh@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/usbc/usb_tc_drp_acc_trysrc_sm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usbc/usb_tc_drp_acc_trysrc_sm.c b/common/usbc/usb_tc_drp_acc_trysrc_sm.c
index 05e5f2ec94..5c2c19c568 100644
--- a/common/usbc/usb_tc_drp_acc_trysrc_sm.c
+++ b/common/usbc/usb_tc_drp_acc_trysrc_sm.c
@@ -615,7 +615,7 @@ static bool pd_comm_allowed_by_policy(void)
* when sysjump to RW that makes the device brownout on the dead-battery
* case. Disable PD for this special case as a workaround.
*/
- if (IS_ENABLED(CONFIG_SYSTEM_UNLOCKED)) {
+ if (!system_is_locked()) {
if (IS_ENABLED(CONFIG_VBOOT_EFS2))
return true;