diff options
Diffstat (limited to 'board/scarlet/usb_pd_policy.c')
-rw-r--r-- | board/scarlet/usb_pd_policy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/scarlet/usb_pd_policy.c b/board/scarlet/usb_pd_policy.c index 3bc3d26749..e75e99f01c 100644 --- a/board/scarlet/usb_pd_policy.c +++ b/board/scarlet/usb_pd_policy.c @@ -107,7 +107,7 @@ int pd_check_power_swap(int port) * otherwise assume our role is fixed (not in S0 or console command * to fix our role). */ - return pd_get_dual_role() == PD_DRP_TOGGLE_ON ? 1 : 0; + return pd_get_dual_role(port) == PD_DRP_TOGGLE_ON ? 1 : 0; } int pd_check_data_swap(int port, int data_role) @@ -122,7 +122,7 @@ 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() == PD_DRP_TOGGLE_ON ? 1 : 0; + return pd_get_dual_role(port) == PD_DRP_TOGGLE_ON ? 1 : 0; } void pd_execute_data_swap(int port, int data_role) @@ -137,7 +137,7 @@ void pd_check_pr_role(int port, int pr_role, int flags) * if a power swap is necessary. */ if ((flags & PD_FLAGS_PARTNER_DR_POWER) && - pd_get_dual_role() == PD_DRP_TOGGLE_ON) { + pd_get_dual_role(port) == PD_DRP_TOGGLE_ON) { /* * If we are a sink and partner is not externally powered, then * swap to become a source. If we are source and partner is |