diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2020-12-01 14:06:01 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-08 05:32:33 +0000 |
commit | 9551bd9430b164f06a3eb4cf974a2dd00549e59d (patch) | |
tree | 03b277451e755191b9beb0d4838bc8f643e1f360 /baseboard/kukui | |
parent | fc827a9f05a0f139ea198c32a556f662d097d134 (diff) | |
download | chrome-ec-9551bd9430b164f06a3eb4cf974a2dd00549e59d.tar.gz |
kukui: allow Vconn swap if battery exists.
BUG=b:174324375
TEST=insert Apple dongle, and HDMI port works.
BRANCH=kukui
Change-Id: I6ac5c6ce172c6f395a38b0be7dffb4e92f3b9dc4
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2578221
Reviewed-by: Mike Lee <mike5@huaqin.corp-partner.google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Tested-by: Mike Lee <mike5@huaqin.corp-partner.google.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'baseboard/kukui')
-rw-r--r-- | baseboard/kukui/usb_pd_policy.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/baseboard/kukui/usb_pd_policy.c b/baseboard/kukui/usb_pd_policy.c index b17552a08c..2344c41427 100644 --- a/baseboard/kukui/usb_pd_policy.c +++ b/baseboard/kukui/usb_pd_policy.c @@ -104,11 +104,8 @@ void pd_power_supply_reset(int port) int pd_check_vconn_swap(int port) { - /* - * VCONN is provided directly by the battery (PPVAR_SYS) - * but use the same rules as power swap. - */ - return pd_get_dual_role(port) == PD_DRP_TOGGLE_ON ? 1 : 0; + /* always allow vconn swap, since PSYS sources VCONN */ + return 1; } /* ----------------- Vendor Defined Messages ------------------ */ |