On Wed, 4 Jan 2023 15:13:41 +0100 Petr Tesařík <petr@xxxxxxxxxxx> wrote: > Hi folks, > > I'm struggling with autosuspend on my Samsung phone in download mode, > as it apparently breaks heimdall/libusb on my Tumbleweed system. Here's > what I'm seeing: > > - My device is autosuspended, because it has been idle for long enough. > - cd /sys/bus/usb/devices/1-4/ # my device's port > - echo -1 > power/autosuspend > - The device is reset and gets a new device ID. > The current directory is no longer valid (becomes empty). On a second thought, this looks like the actual bug. I don't think we're supposed to see a disconnect+reconnect whenever a suspended USB device is resumed. Then again, I'm no expert on USB... Petr T