Skip to content

Commit abc0da7

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 81be819 commit abc0da7

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

0 commit comments

Comments
 (0)