USB: serial: xr: fix B0 handling
authorJohan Hovold <johan@kernel.org>
Thu, 21 Jan 2021 10:29:22 +0000 (11:29 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 26 Jan 2021 15:17:01 +0000 (16:17 +0100)
commit55317e22391ffc5aa297c3a617c8c3302fb184b6
tree970fa630d9ab5851bf85e4511eb5932cbd49eeef
parent0d05d7d913892cd093acc5a0ac884ebab9fda67c
USB: serial: xr: fix B0 handling

Fix up B0 handling which should leave the baud rate unchanged and
specifically not report back a non-B0 rate when B0 is requested; must
temporarily disable hardware flow control so that RTS can be deasserted;
and should reassert DTR/RTS when moving from B0.

Fixes: c2d405aa86b4 ("USB: serial: add MaxLinear/Exar USB to Serial driver")
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/xr_serial.c