Calling usb_packet_complete() recursively when passing up the completion
event up the chain for devices connected via usb hub will trigger an
assert. So don't do that, make the usb hub emulation call the upstream
completion callback directly instead.
Based on a patch from Stefan Hajnoczi
Hi,
-usb_packet_complete(s-dev, packet);
+s-dev.port-ops-complete(s-dev.port, packet);
Oops, that doesn't compile. Got sidetracked wile waiting for the test
build finish, then forgot to check the results :(
Updated patch attached. Branch for pulling updated inplace.
cheers,