From e32ef79d5229489e9ed824d9ea164c915587b3cf Mon Sep 17 00:00:00 2001 From: Ting Shen Date: Wed, 11 Nov 2020 17:39:31 +0800 Subject: asurada: allow vconn swap BUG=b:171539818 TEST=none BRANCH=none Signed-off-by: Ting Shen Change-Id: I7606abe8adb3ab3d3a6aee876e47305e7c6a6d43 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2532194 Reviewed-by: Eric Yilun Lin Commit-Queue: Ting Shen Tested-by: Ting Shen --- board/asurada/usb_pd_policy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'board/asurada') diff --git a/board/asurada/usb_pd_policy.c b/board/asurada/usb_pd_policy.c index ce27dd20d6..8d1a13da5b 100644 --- a/board/asurada/usb_pd_policy.c +++ b/board/asurada/usb_pd_policy.c @@ -188,8 +188,8 @@ void pd_power_supply_reset(int port) int pd_check_vconn_swap(int port) { - /* TODO: Only allow vconn swap if PP4200_G rail is enabled , s3/s0 on */ - return 0; + /* Allow Vconn swap if AP is on. */ + return chipset_in_state(CHIPSET_STATE_SUSPEND | CHIPSET_STATE_ON); } int pd_set_power_supply_ready(int port) -- cgit v1.2.1