]> git.baikalelectronics.ru Git - kernel.git/commit
tty: rocket: drop broken alt-speed support
authorJohan Hovold <johan@kernel.org>
Tue, 6 Jun 2017 10:54:39 +0000 (12:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2017 09:49:58 +0000 (11:49 +0200)
commita5fb3be6f7aa7b6835273f79bf3b6dabaa0c3322
tree5c0023353d102bf5a94a3c82b430ffb855839930
parent9bfd411f08b07f25fdafaade3e182b0b0e667046
tty: rocket: drop broken alt-speed support

Setting an alt_speed using the ROCKET_SPD flags has been deprecated
since v2.1.69, and has been broken since commit 2d978ad72e09 ("TTY: do
not warn about setting speed via SPD_*") without anyone noticing.

To make things worse commit ed93542af8cf ("rocket: first pass at termios
reporting") in v2.6.25 started reporting back the actual baud rate used,
something which also required 38400 to again be set whenever changing a
SPD flag.

Drop the broken alt-speed handling altogether, and add a ratelimited
warning about using TIOCCSERIAL to change speed as being deprecated.

Note that the rocket driver has never supported using a custom divisor
(ASYNC_SPD_CUST equivalent).

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/rocket.c