Skip to content

Commit f413980

Browse files
mathieuchopstmjhedberg
authored andcommitted
drivers: usb: udc: stm32: fix N6 power-up sequence logic
Actually do what the comment says and wait for Vdd33USB to be ready, instead of waiting for the opposite. Signed-off-by: Mathieu Choplain <[email protected]>
1 parent 2b1ea37 commit f413980

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/usb/udc/udc_stm32.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,10 +1258,10 @@ static int priv_clock_enable(void)
12581258
}
12591259
#endif /* DT_HAS_COMPAT_STATUS_OKAY(st_stm32_otghs) */
12601260
#elif defined(CONFIG_SOC_SERIES_STM32N6X)
1261-
/* Enable Vdd USB voltage monitoring */
1261+
/* Enable Vdd33USB voltage monitoring */
12621262
LL_PWR_EnableVddUSBMonitoring();
1263-
while (__HAL_PWR_GET_FLAG(PWR_FLAG_USB33RDY)) {
1264-
/* Wait FOR VDD33USB ready */
1263+
while (!LL_PWR_IsActiveFlag_USB33RDY()) {
1264+
/* Wait for Vdd33USB ready */
12651265
}
12661266

12671267
/* Enable VDDUSB */

0 commit comments

Comments
 (0)