Skip to content

Commit 884526e

Browse files
committed
drivers: usb: udc_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 42df721 commit 884526e

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
@@ -1139,7 +1139,7 @@ static int priv_clock_enable(void)
11391139
LL_AHB1_GRP1_DisableClockSleep(LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI);
11401140
#elif defined(CONFIG_SOC_SERIES_STM32U5X)
11411141
/* Both OTG HS and USBPHY sleep clock MUST be disabled here at the same time */
1142-
LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS ||
1142+
LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS |
11431143
LL_AHB2_GRP1_PERIPH_USBPHY);
11441144
#else
11451145
LL_AHB1_GRP1_DisableClockLowPower(LL_AHB1_GRP1_PERIPH_OTGHSULPI);

0 commit comments

Comments
 (0)