Hi Tony, On Wed, 2 Jun 2021 08:41:54 +0300 Tony Lindgren <tony@xxxxxxxxxxx> wrote: > * Andreas Kemnade <andreas@xxxxxxxxxxxx> [210528 09:37]: > > rmmod omap2430 seems to bring back suspend current current to low > > currents. > > I wonder if the recent musb fix patch helps with this? > > [PATCH] usb: musb: fix MUSB_QUIRK_B_DISCONNECT_99 handling > https://lore.kernel.org/lkml/20210528140446.278076-1-thomas.petazzoni@xxxxxxxxxxx/ > it does not help. I did some more experiments and found out that echo on >/sys/bus/platform/devices/480ab000.usb_otg_hs/power/control sleep 3 before doing an rtcwake -m mem helps 2 seconds are not long enough. All with usb disconnected. some debug printks inserted into omap2430.c (doing it without the echo on thing) [ 355.643768] PM: suspend entry (deep) [ 355.643920] Filesystems sync: 0.000 seconds [ 355.644683] Freezing user space processes ... (elapsed 0.001 seconds) done. [ 355.646392] OOM killer disabled. [ 355.646423] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 355.648010] printk: Suspending console(s) (use no_console_suspend to debug) [ 355.649291] musb-hdrc musb-hdrc.1.auto: omap2430 runtime_resume [ 355.966522] musb-omap2430 480ab000.usb_otg_hs: omap2430 suspend [ 355.966552] musb-hdrc musb-hdrc.1.auto: omap2430 runtime_suspend [ 355.975250] musb-hdrc musb-hdrc.1.auto: omap2430 runtime_suspend [ 355.977294] Disabling non-boot CPUs ... [ 355.977325] Successfully put all powerdomains to target state [ 355.979034] musb-hdrc musb-hdrc.1.auto: omap2430 runtime_resume [ 356.244628] musb-omap2430 480ab000.usb_otg_hs: omap2430 resume [ 356.244659] musb-hdrc musb-hdrc.1.auto: omap2430 runtime_resume [ 356.486145] musb-hdrc musb-hdrc.1.auto: VBUS b_idle, devctl 80 [ 356.486175] musb-hdrc musb-hdrc.1.auto: VBUS Disconnect [ 356.486175] musb-hdrc musb-hdrc.1.auto: musb_set_peripheral: already in peripheral mode: 80 There are two suspends in a row, I tried to fix it but it seems not to be the cause for trouble. Regards, Andreas