Commit 1132279d authored by Riku Karjalainen's avatar Riku Karjalainen Committed by github-actions[bot]
Browse files

drivers: usb: stm32: fix stm32u5x clock disable in sleep mode

Replace logical OR with bitwise OR.

Signed-off-by: default avatarRiku Karjalainen <riku.karjalainen@vaisala.com>
(cherry picked from commit 160ef467)
parent aabd3a18
Loading
Loading
Loading
Loading
+1 −1
Changes for drivers/usb/device/usb_dc_stm32.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -311,7 +311,7 @@ static int usb_dc_stm32_clock_enable(void)
#elif defined(CONFIG_SOC_SERIES_STM32U5X)
	LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_USBPHY);
	/* Both OTG HS and USBPHY sleep clock MUST be disabled here at the same time */
	LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS ||
	LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS |
						LL_AHB2_GRP1_PERIPH_USBPHY);
#else
	LL_AHB1_GRP1_DisableClockLowPower(LL_AHB1_GRP1_PERIPH_OTGHSULPI);