]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: ftdi_sio: ignore baud_base changes
authorJohan Hovold <johan@kernel.org>
Wed, 7 Apr 2021 10:39:23 +0000 (12:39 +0200)
committerJohan Hovold <johan@kernel.org>
Thu, 8 Apr 2021 07:46:03 +0000 (09:46 +0200)
commitd9a331542a02bd81cdcb6d41be48180499163678
tree42e7a218e9e54d744d03fc64a27c1fb92bd162af
parentd4ba3a410d14074ae1c634ab81fdc9d20c717bd3
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>
drivers/usb/serial/ftdi_sio.c