On Sat, 22 Apr 2006, Paul Fulghum wrote: > Guennadi Liakhovetski wrote: > > Emn, Paul, correct me if I am wrong. The only (regular) place I found where > > console->setup() is called is in kernel/printk.c in register_console()... > > Yes
So, it doesn't make sense to change it there - register_console() is only called from usb_serial_console_init(), which is only called from usb_serial_probe(), i.e., on init, and not on open? > > Anyway, I did check it (I just changed the if() that follows to if(1), > > because without ++open_count the test if (open_count == 1) doesn't trigger > > too often:-)) > > And the result was what? Same. Actually, I think, there's (at least) one more bug - with the current version (after our patches) booting with console=ttyUSB0 and specifying /sbin/getty -L ttyUSB0 in /etc/inittab with ftdi locks the system up... Whereas, opening it later, e.g., with minicom is fine (without input). With my patch to only allocate tty if port->tty == NULL upon your suggestion it didn't lock up, and just displayed prompt, with input blocked... I'll have to double-check it... This is becomming a full-time job:-( Thanks Guennadi --- Guennadi Liakhovetski ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel