USB: serial: xr: fix pin configuration
authorJohan Hovold <johan@kernel.org>
Thu, 21 Jan 2021 10:29:21 +0000 (11:29 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 26 Jan 2021 15:16:56 +0000 (16:16 +0100)
commit0d05d7d913892cd093acc5a0ac884ebab9fda67c
tree61fa11b125f5c3a011b94cf6b557548a8a66ba3c
parent465d3b3a0d311680d0e42258fd25454433667e9d
USB: serial: xr: fix pin configuration

Make sure that the modem pins are set up correctly when opening the
port to avoid leaving, for example, DTR and RTS configured as inputs,
which is the device default.

This is specifically needed to be able to control DTR and RTS when
hardware flow control is disabled.

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