USB: serial: xr: reset FIFOs on open
authorJohan Hovold <johan@kernel.org>
Mon, 12 Apr 2021 09:55:55 +0000 (11:55 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 13 Apr 2021 16:36:38 +0000 (18:36 +0200)
commit06f79d57f4f572395082da07d663fef91c9bb891
tree5202ec74cf5e71c407f0ffbeec358d8aa77d9238
parent6da99f9de5feb25b01cbe37fdb15f26a2d7d64a9
USB: serial: xr: reset FIFOs on open

Reset the transmit and receive FIFOs before enabling the UARTs as part
of open() in order to flush any stale data.

Note that the XR21V141X needs a type-specific implementation due to its
UART Manager registers.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/xr_serial.c