]> git.baikalelectronics.ru Git - kernel.git/commit
serial: don't register CIR serial ports
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Sun, 27 Sep 2015 14:25:56 +0000 (16:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 16:23:52 +0000 (17:23 +0100)
commitac541f22b3ae17ac60044e7ce437e05edf5c0b7c
tree3cad09b06b571bc8039afe9f9c8596b39eef933f
parent5b6d5a99326811d1da02ee7bf25f18c3003f37b1
serial: don't register CIR serial ports

CIR type serial ports aren't real serial ports.

This is just a way to prevent legacy 8250 serial
driver from probing and eventually binding some
resources.

Since in current state such ports aren't providing
any real functionality and it is not possible
to change their type via setserial/ioctl(TIOCSSERIAL)
(due to UPF_FIXED_PORT flag set on them)
it is simpler and cleaner to not register them at all
with serial core.

Print a short message in this case so it is known
to user what has happened.

This way checks for PORT_8250_CIR in serial port
callbacks can be removed too, since they won't
ever be called.

Signed-off-by: Maciej Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c
drivers/tty/serial/8250/8250_port.c