Searched hist:"46827 bda2dd635aed8af0a232a8992d1481140d6" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/usb/serial/ |
H A D | cp210x.c | diff 46827bda2dd635aed8af0a232a8992d1481140d6 Mon Nov 16 17:18:23 CET 2020 Johan Hovold <johan@kernel.org> USB: serial: cp210x: set terminal settings on open
Unlike other drivers cp210x have been retrieving the current terminal settings from the device on open and reflecting those in termios.
Due to how set_termios() used to be implemented, this saved a few control requests on open but has instead caused problems like broken flow control and has required adding workarounds for swapped line-control in cp2108 and line-speed initialisation on cp2104.
This unusual implementation also complicates adding new features for no good reason.
Rip out the corresponding code and the above mentioned workarounds and instead initialise the terminal settings unconditionally on open.
Signed-off-by: Johan Hovold <johan@kernel.org>
|