Skip to content

Commit 26f5469

Browse files
mathieuchopstmjhedberg
authored andcommitted
drivers: usb: device: 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 f413980 commit 26f5469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/device/usb_dc_stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ static int usb_dc_stm32_phy_specific_clock_enable(const struct device *const clk
349349
#elif DT_HAS_COMPAT_STATUS_OKAY(st_stm32n6_otghs)
350350
/* Enable Vdd USB voltage monitoring */
351351
LL_PWR_EnableVddUSBMonitoring();
352-
while (__HAL_PWR_GET_FLAG(PWR_FLAG_USB33RDY)) {
352+
while (!__HAL_PWR_GET_FLAG(PWR_FLAG_USB33RDY)) {
353353
/* Wait for VDD33USB ready */
354354
}
355355
/* Enable VDDUSB */

0 commit comments

Comments
 (0)