From: Keith Packard Date: Thu, 14 May 2009 03:41:54 +0000 (-0700) Subject: Discard usb output before connection. Handle USB reset. X-Git-Tag: 0.2^0 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=37250b00f6286aee4b3b28604f5d463db3079a89;hp=37250b00f6286aee4b3b28604f5d463db3079a89;ds=sidebyside Discard usb output before connection. Handle USB reset. Discarding output before USB is plugged in allows threads that send output and do other things to work without a USB connection. Unfortuantely, there doesn't appear to be any way to detect when the USB link is disconnected, which means that once USB is enabled, future writes will continue to block. USB reset causes the USB interrupts to all be reconfigured back to power-on state. Signed-off-by: Keith Packard ---