Skip to content

Commit d4b2808

Browse files
marwaiehm-stcfriedt
authored andcommitted
drivers: usb: device: 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 6b331ce commit d4b2808

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/usb/device/usb_dc_stm32.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,6 @@ static int usb_dc_stm32_clock_enable(void)
429429
LL_AHB1_GRP1_DisableClockSleep(LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI);
430430
#elif defined(CONFIG_SOC_SERIES_STM32U5X)
431431
LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_USBPHY);
432-
/* Both OTG HS and USBPHY sleep clock MUST be disabled here at the same time */
433-
LL_AHB2_GRP1_DisableClockStopSleep(LL_AHB2_GRP1_PERIPH_OTG_HS |
434-
LL_AHB2_GRP1_PERIPH_USBPHY);
435432
#elif DT_HAS_COMPAT_STATUS_OKAY(st_stm32n6_otghs)
436433
/* Reset specific configuration bits before setting new values */
437434
USB1_HS_PHYC->USBPHYC_CR &= ~USB_USBPHYC_CR_FSEL_Msk;

0 commit comments

Comments
 (0)