Commit d40a01c8 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 9493af93)
parent 9d41cbaf
Loading
Loading
Loading
Loading
+1 −1
Changes for drivers/usb/udc/udc_stm32.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -1157,7 +1157,7 @@ static int priv_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);