USB: serial: cp210x: set terminal settings on open
authorJohan Hovold <johan@kernel.org>
Mon, 16 Nov 2020 16:18:23 +0000 (17:18 +0100)
committerJohan Hovold <johan@kernel.org>
Fri, 4 Dec 2020 13:57:24 +0000 (14:57 +0100)
commit46827bda2dd635aed8af0a232a8992d1481140d6
tree21fb651420b4cdd26cb65d8940194a15dff4481d
parentd42976296c3389b556913d249f7c5626b754ec26
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>
drivers/usb/serial/cp210x.c