summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
Diffstat (limited to 'driver')
-rw-r--r--driver/tcpm/tcpci.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/driver/tcpm/tcpci.c b/driver/tcpm/tcpci.c
index 85579428ba..0ada2111ee 100644
--- a/driver/tcpm/tcpci.c
+++ b/driver/tcpm/tcpci.c
@@ -1094,7 +1094,11 @@ int tcpci_tcpm_init(int port)
CPRINTS("C%d: Failed to init TCPC_CTRL!", port);
}
- tcpc_write16(port, TCPC_REG_ALERT, 0xffff);
+ /*
+ * Handle and clear any alerts, since we might be coming out of low
+ * power mode in response to an alert interrupt from the TCPC.
+ */
+ tcpc_alert(port);
/* Initialize power_status_mask */
init_power_status_mask(port);
/* Update VBUS status */