Skip to content

Commit 9370bc3

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 9493af9)
1 parent 1132279 commit 9370bc3

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
@@ -1069,7 +1069,7 @@ static int priv_clock_enable(void)
10691069
#elif defined(CONFIG_SOC_SERIES_STM32U5X)
10701070
LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_USBPHY);
10711071
/* Both OTG HS and USBPHY sleep clock MUST be disabled here at the same time */
1072-
LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS ||
1072+
LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS |
10731073
LL_AHB2_GRP1_PERIPH_USBPHY);
10741074
#else
10751075
LL_AHB1_GRP1_DisableClockLowPower(LL_AHB1_GRP1_PERIPH_OTGHSULPI);

0 commit comments

Comments
 (0)