Skip to content

Commit 160ef46

Browse files
vai-rikarfabiobaltieri
authored andcommitted
drivers: usb: stm32: fix stm32u5x clock disable in sleep mode
Replace logical OR with bitwise OR. Signed-off-by: Riku Karjalainen <[email protected]>
1 parent 7b287ec commit 160ef46

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
@@ -430,7 +430,7 @@ static int usb_dc_stm32_clock_enable(void)
430430
#elif defined(CONFIG_SOC_SERIES_STM32U5X)
431431
LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_USBPHY);
432432
/* Both OTG HS and USBPHY sleep clock MUST be disabled here at the same time */
433-
LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS ||
433+
LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS |
434434
LL_AHB2_GRP1_PERIPH_USBPHY);
435435
#elif DT_HAS_COMPAT_STATUS_OKAY(st_stm32n6_otghs)
436436
/* Reset specific configuration bits before setting new values */

0 commit comments

Comments
 (0)