USB: serial: xr: avoid requesting zero DTE rate
authorJohan Hovold <johan@kernel.org>
Tue, 29 Nov 2022 14:18:57 +0000 (15:18 +0100)
committerJohan Hovold <johan@kernel.org>
Wed, 30 Nov 2022 11:28:51 +0000 (12:28 +0100)
commit63b8ed26cd093ecc1bcdd1fd841f238a52c11031
treeac9326177c7bd7a49e717edf0411f33404c7dbbc
parentd03a6d4e2beaa358b6c4e16fe106e813a57e927a
USB: serial: xr: avoid requesting zero DTE rate

When the requested line speed is B0 (hangup) there is no need to use the
current speed in the line-coding request. This specifically avoids
requesting a zero DTE rate when the current speed is B0, which could
potentially confuse buggy firmware.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/xr_serial.c