Skip to content

Commit 1132279

Browse files
vai-rikargithub-actions[bot]
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]> (cherry picked from commit 160ef46)
1 parent aabd3a1 commit 1132279

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
@@ -311,7 +311,7 @@ static int usb_dc_stm32_clock_enable(void)
311311
#elif defined(CONFIG_SOC_SERIES_STM32U5X)
312312
LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_USBPHY);
313313
/* Both OTG HS and USBPHY sleep clock MUST be disabled here at the same time */
314-
LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS ||
314+
LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS |
315315
LL_AHB2_GRP1_PERIPH_USBPHY);
316316
#else
317317
LL_AHB1_GRP1_DisableClockLowPower(LL_AHB1_GRP1_PERIPH_OTGHSULPI);

0 commit comments

Comments
 (0)