USB: serial: cp210x: add support for B0 hangup
authorJohan Hovold <johan@kernel.org>
Tue, 29 Nov 2022 14:15:39 +0000 (15:15 +0100)
committerJohan Hovold <johan@kernel.org>
Wed, 30 Nov 2022 06:37:12 +0000 (07:37 +0100)
commitd03a6d4e2beaa358b6c4e16fe106e813a57e927a
tree0e8710507caa4e927753e02de0f9c527a93c9928
parente88906b169ebcb8046e8f0ad76edd09ab41cfdfe
USB: serial: cp210x: add support for B0 hangup

A request to set the line speed to B0 is used to hang up a modem
connection by deasserting the modem control lines.

Note that there is no need reconfigure the line speed in hardware when
B0 is requested (even if some drivers do set it to an arbitrary value
for implementation or protocol reasons).

Reviewed-by: Alex Henrie <alexh@vpitech.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/cp210x.c