Skip to content

Commit 42df721

Browse files
committed
drivers: usb: device_stm32: corrected the logical OR || to |
corrected the logical OR (||) to bitwise OR (|) in the LL_AHB2_GRP1_DisableClockStopSleep function call. Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
1 parent 7f06d0a commit 42df721

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
@@ -419,7 +419,7 @@ static int usb_dc_stm32_clock_enable(void)
419419
LL_AHB1_GRP1_DisableClockSleep(LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI);
420420
#elif defined(CONFIG_SOC_SERIES_STM32U5X)
421421
/* Both OTG HS and USBPHY sleep clock MUST be disabled here at the same time */
422-
LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS ||
422+
LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS |
423423
LL_AHB2_GRP1_PERIPH_USBPHY);
424424
#else
425425
LL_AHB1_GRP1_DisableClockLowPower(LL_AHB1_GRP1_PERIPH_OTGHSULPI);

0 commit comments

Comments
 (0)