Skip to content

Commit 9493af9

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 160ef46 commit 9493af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/udc/udc_stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ static int priv_clock_enable(void)
11441144
#elif defined(CONFIG_SOC_SERIES_STM32U5X)
11451145
LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_USBPHY);
11461146
/* Both OTG HS and USBPHY sleep clock MUST be disabled here at the same time */
1147-
LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS ||
1147+
LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS |
11481148
LL_AHB2_GRP1_PERIPH_USBPHY);
11491149
#elif DT_HAS_COMPAT_STATUS_OKAY(st_stm32n6_otghs)
11501150
/* Reset specific configuration bits before setting new values */

0 commit comments

Comments
 (0)