Closed wchill closed 1 year ago
Hello.
My appologies for missing this issue entirely. I just noticed the most recent pair of notifications from this repository.
The teardown of a usb gadget is rather involved and contains some rather unusual commands (rmdir of a non-empty folder being one of the sneakier ones). I am surprised though that a ^C during __enter__
is enough to cause issues: it is supposed to attempt a teardown. Seeing the other outstanding kernel-side issues, maybe there is more ? Especially, how representative for __enter__
to get interrupted on the mkdir
step ?
Honestly, I don't know why but this kinda resolved itself. This issue is unrelated to the issues I'm seeing on the RK3588 though.
Not sure what I'm doing wrong here, but when I hit Ctrl+C to interrupt the process, functionfs remains loaded and I have to reboot in order to use functionfs again.
This is what I get when rerunning:
I'm not able to unload the functionfs/libcomposite modules since they are in use:
After unmounting the usb0 functionfs mount:
Any ideas on what to do here? Rebooting every time I need to rerun my code is a huge issue.