From 6b4b7a02e7e811e7eaaee3a4b48f432128c99fd7 Mon Sep 17 00:00:00 2001 From: Sam Hurst Date: Sat, 21 Jan 2023 20:11:49 -0800 Subject: [PATCH] usb-c: tcpc: Enable ISR Hard Reset sent bits This change enables the ISR Hard Reset sent bits, so that an interrupt is generated when a Hard Reset is sent or the Hard Reset failed. Signed-off-by: Sam Hurst --- drivers/usb_c/tcpc/ucpd_stm32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb_c/tcpc/ucpd_stm32.c b/drivers/usb_c/tcpc/ucpd_stm32.c index 5bff82557b7..75ee619bef7 100644 --- a/drivers/usb_c/tcpc/ucpd_stm32.c +++ b/drivers/usb_c/tcpc/ucpd_stm32.c @@ -553,6 +553,8 @@ static void ucpd_start_transmit(const struct device *dev, imr = LL_UCPD_ReadReg(config->ucpd_port, IMR); imr |= UCPD_IMR_HRSTDISCIE | UCPD_IMR_HRSTSENTIE; + LL_UCPD_WriteReg(config->ucpd_port, IMR, imr); + /* Initiate Hard Reset */ cr |= UCPD_CR_TXHRST; LL_UCPD_WriteReg(config->ucpd_port, CR, cr);