]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: xr: fix CSIZE handling
authorJohan Hovold <johan@kernel.org>
Tue, 30 Mar 2021 14:37:16 +0000 (16:37 +0200)
committerJohan Hovold <johan@kernel.org>
Thu, 1 Apr 2021 08:02:13 +0000 (10:02 +0200)
commitf7486db268b9d0643388c40c4a1f68fe85693ecc
tree7d85003019704a688019d6d07c41460dc4e0bdcf
parentca5dcfb85be4acdc1c546a4ff92ccdd417094f88
USB: serial: xr: fix CSIZE handling

The XR21V141X does not have a 5- or 6-bit mode, but the current
implementation failed to properly restore the old setting when CS5 or
CS6 was requested. Instead an invalid request would be sent to the
device.

Fixes: b6b8701971f6 ("USB: serial: add MaxLinear/Exar USB to Serial driver")
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Cc: stable@vger.kernel.org # 5.12
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/xr_serial.c