summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2020-11-11 17:39:31 +0800
committerCommit Bot <commit-bot@chromium.org>2020-11-12 09:06:29 +0000
commite32ef79d5229489e9ed824d9ea164c915587b3cf (patch)
tree04cab1f779cf1a7cdaaca7642db93b7a1c25c0b9
parent90d57a15d96d6e65f9afb7826e1ee844c543afbe (diff)
downloadchrome-ec-e32ef79d5229489e9ed824d9ea164c915587b3cf.tar.gz
asurada: allow vconn swap
BUG=b:171539818 TEST=none BRANCH=none Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I7606abe8adb3ab3d3a6aee876e47305e7c6a6d43 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2532194 Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--board/asurada/usb_pd_policy.c4
1 files changed, 2 insertions, 2 deletions
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)