On Tue, Jul 12, 2016 at 10:18:05AM +0200, Jan Kundrát wrote: > On Tuesday, 12 July 2016 01:50:59 CEST, Greg KH wrote: > > There is, as far as I can tell, no set of "default" termios values for > > any type of serial port, so the "last" set of them is as good as any, > > right? > > Each driver specifies an initial value > (usb_serial_tty_driver->init_termios), and this value is not applied in > this case. > > > So this should be the same for any type of serial port you can > > remove/add from the system, right? > > It seems so -- as long as the driver itself is not unloaded. That comes as > a surprise to me. If it's a feature that these settings are supposed to be > persistent, then IMHO they should be really saved somewhere across reboots. > Right now, a module reload throws them away which suggests that the > persistency spanning a device disconnect is only a side-effect of the > intended persistency over open()/close() cycle. Thanks for reporting this. I ran into this myself recently, and remembered seeing this thread last summer. I've submitted a patch to fix this in the tty layer so that we get consistent behaviour across all hot-pluggable buses. Thanks, Johan -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html