summaryrefslogtreecommitdiff
path: root/common/usbc/usb_pe_drp_sm.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/usbc/usb_pe_drp_sm.c')
-rw-r--r--common/usbc/usb_pe_drp_sm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c
index f8f07adf2a..c49ce15918 100644
--- a/common/usbc/usb_pe_drp_sm.c
+++ b/common/usbc/usb_pe_drp_sm.c
@@ -1710,6 +1710,10 @@ static void pe_update_src_pdo_flags(int port, int pdo_cnt, uint32_t *pdos)
void pd_request_power_swap(int port)
{
+ /* Ignore requests when the board does not wish to swap */
+ if (!pd_check_power_swap(port))
+ return;
+
/*
* Always reset the SRC to SNK PR swap counter when a PR swap is
* requested by policy.