ja-rule icon indicating copy to clipboard operation
ja-rule copied to clipboard

Reset USB CDC transfers when the carrier disconnects

Open nomis52 opened this issue 10 years ago • 1 comments

Right now, if you have a console (minicom) open to the device and disconnect the CDC layer is left in a partially completed state. This means if you later reconnect a console it fails to work.

We can detect the carrier dropping but need a way to cancel the in flight read / write transfers.

nomis52 avatar Mar 06 '15 16:03 nomis52

USB_DEVICE_IRPCancelAll() doesn't work as I expect. There seems to be some internal state that isn't being reset correctly. See the comments on usb_console.c

nomis52 avatar Mar 07 '15 17:03 nomis52