summaryrefslogtreecommitdiff
path: root/common/usb_pd_protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/usb_pd_protocol.c')
-rw-r--r--common/usb_pd_protocol.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c
index 82141d1cf9..9c63a753da 100644
--- a/common/usb_pd_protocol.c
+++ b/common/usb_pd_protocol.c
@@ -2579,6 +2579,14 @@ void pd_task(void *u)
int snk_cap_count = 0;
int evt;
+#ifdef CONFIG_USB_PD_TCPC_LOW_POWER
+ /*
+ * Set the ports in Low Power Mode so that other tasks wait until
+ * TCPC is initialized and ready.
+ */
+ pd[port].flags |= PD_FLAGS_LPM_ENGAGED;
+#endif
+
#ifdef CONFIG_COMMON_RUNTIME
pd_init_tasks();
#endif