diff options
author | Johan Hovold <johan@kernel.org> | 2021-04-07 12:39:23 +0200 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2021-04-08 09:46:03 +0200 |
commit | 9378379b15e3bab6915193874e1ac4464f36d869 (patch) | |
tree | 42e7a218e9e54d744d03fc64a27c1fb92bd162af /drivers/usb/serial/ftdi_sio.c | |
parent | f64d74a59c476df7d5abbddc23011f0d8475c7cc (diff) |
USB: serial: ftdi_sio: ignore baud_base changes
The TIOCSSERIAL error handling is inconsistent at best, but drivers tend
to ignore requests to change parameters which cannot be changed rather
than return an error.
The FTDI driver ignores change requests for all immutable parameters but
baud_base so return success also in this case for consistency.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 16d3e50487e6..3fd7875200b9 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -1509,10 +1509,6 @@ static int set_serial_info(struct tty_struct *tty, goto check_and_exit; } - if (ss->baud_base != priv->baud_base) { - mutex_unlock(&priv->cfg_lock); - return -EINVAL; - } /* Make the changes - these are privileged changes! */ |