OSDN Git Service

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)
commit9378379b15e3bab6915193874e1ac4464f36d869
tree42e7a218e9e54d744d03fc64a27c1fb92bd162af
parentf64d74a59c476df7d5abbddc23011f0d8475c7cc
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