Skip to content

Commit 8b355e9

Browse files
marwaiehm-stcfriedt
authored andcommitted
drivers: usb: udc: prevent USB clock disable in sleep mode
Prevent disabling OTG HS and USBPHY clocks during sleep on STM32U5 series Disabling these clocks during sleep mode was causing USB device initialization issues Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <[email protected]>
1 parent d4b2808 commit 8b355e9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/usb/udc/udc_stm32.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,9 +1143,6 @@ static int priv_clock_enable(void)
11431143
LL_AHB1_GRP1_DisableClockSleep(LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI);
11441144
#elif defined(CONFIG_SOC_SERIES_STM32U5X)
11451145
LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_USBPHY);
1146-
/* Both OTG HS and USBPHY sleep clock MUST be disabled here at the same time */
1147-
LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS |
1148-
LL_AHB2_GRP1_PERIPH_USBPHY);
11491146
#elif DT_HAS_COMPAT_STATUS_OKAY(st_stm32n6_otghs)
11501147
/* Reset specific configuration bits before setting new values */
11511148
USB1_HS_PHYC->USBPHYC_CR &= ~USB_USBPHYC_CR_FSEL_Msk;

0 commit comments

Comments
 (0)