Searched hist:d42976296c3389b556913d249f7c5626b754ec26 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/usb/serial/ |
H A D | cp210x.c | diff d42976296c3389b556913d249f7c5626b754ec26 Mon Nov 16 17:18:22 CET 2020 Johan Hovold <johan@kernel.org> USB: serial: cp210x: clean up line-control handling
Update the line-control settings in one request unconditionally instead of setting the word-length, parity and stop-bit settings separately.
This avoids multiple requests when several settings are changed even if this scheme could potentially also be used to detect unsupported device settings. Since all device types but CP2101 appears to support all settings, let's handle that one specifically and also report back the unsupported settings properly through termios by clearing the corresponding bits.
Also drop the related unnecessary debug printks.
Signed-off-by: Johan Hovold <johan@kernel.org>
|