On Saturday 16 February 2008, David Brownell wrote: > On USB cable disconnect g_serial doesn't hangup the port tty, > which results in an endless read on the tty device. With the > following patch the read and select behave correctly when > the cable is unplugged.
Whoops, maybe not. Doesn't tty_hangup() have a restriction that it must be called form task context? Whereas gadget driver disconnect() methods are rarely called from such a context... Can you verify that with all lock debugging options enabled (including lockdep) this doesn't trigger any errors? - Dave - To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html