Am 03.10.24 um 13:21 schrieb Stefan Wahren:
Maybe this is a relevant side node: in the bad case the onboard Ethernet chip LAN7800 is also not probed after startup (just root and the hubs). It looks like a race between LAN7800 enumeration and pm_runtime.
Okay, here are more information about this particular problem. This is a dump of the runtime_status from all USB devices on DWC2 tree in bad case: /sys/devices/platform/soc/3f980000.usb/usb1/ep_00/power/runtime_status:unsupported /sys/devices/platform/soc/3f980000.usb/usb1/power/runtime_status:suspended /sys/devices/platform/soc/3f980000.usb/usb1/1-1/ep_00/power/runtime_status:unsupported /sys/devices/platform/soc/3f980000.usb/usb1/1-1/power/runtime_status:suspended /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/ep_00/power/runtime_status:unsupported /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/power/runtime_status:suspended /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1:1.0/1-1.1-port2/power/runtime_status:active /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1:1.0/ep_81/power/runtime_status:unsupported /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1:1.0/1-1.1-port3/power/runtime_status:active /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1:1.0/1-1.1-port1/power/runtime_status:active /sys/devices/platform/soc/3f980000.usb/usb1/1-1/3f980000.usb:usb-port@1:usb-port@1/power/runtime_status:unsupported /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1:1.0/1-1-port3/power/runtime_status:active /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1:1.0/1-1-port1/power/runtime_status:active /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1:1.0/ep_81/power/runtime_status:unsupported /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1:1.0/1-1-port4/power/runtime_status:active /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1:1.0/1-1-port2/power/runtime_status:active /sys/devices/platform/soc/3f980000.usb/usb1/1-0:1.0/usb1-port1/power/runtime_status:active /sys/devices/platform/soc/3f980000.usb/usb1/1-0:1.0/ep_81/power/runtime_status:unsupported /sys/devices/platform/soc/3f980000.usb/usb1/3f980000.usb:usb-port@1/power/runtime_status:unsupported /sys/devices/platform/soc/3f980000.usb/power/runtime_status:unsupported 3 elements are suspended and if i do the following command the LAN7800 is probed and other USB interfaces are enumerated as expected: echo on > /sys/devices/platform/soc/3f980000.usb/usb1/1-1/power/control I don't understand what's the real problem here. Is it that the USB root (DWC2) doesn't support runtime power management?