summaryrefslogtreecommitdiff
path: root/common/usbc
diff options
context:
space:
mode:
Diffstat (limited to 'common/usbc')
-rw-r--r--common/usbc/usb_pe_drp_sm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c
index 94cef6a0d5..1346f0fd9f 100644
--- a/common/usbc/usb_pe_drp_sm.c
+++ b/common/usbc/usb_pe_drp_sm.c
@@ -955,8 +955,8 @@ void pe_invalidate_explicit_contract(int port)
PE_CLR_FLAG(port, PE_FLAGS_EXPLICIT_CONTRACT);
- /* Set Rp for current limit */
- if (IS_ENABLED(CONFIG_USB_PD_REV30))
+ /* Set Rp for current limit if still attached */
+ if (IS_ENABLED(CONFIG_USB_PD_REV30) && pd_is_connected(port))
typec_update_cc(port);
}