]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250: Add flag so drivers can avoid THRE probe
authorJoel Stanley <joel@jms.id.au>
Tue, 2 May 2017 07:45:42 +0000 (17:15 +0930)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 14:19:16 +0000 (16:19 +0200)
commit64bc2ca49d45b4d9e6488682fb440315b9c4b246
treefd749101b10ce79c833f5dd8f212039cf32bdd8e
parentc2b2f2b54ece9242359671b0d607a2de96caf4c3
serial: 8250: Add flag so drivers can avoid THRE probe

The probing of THRE irq behaviour assumes the other end will be reading
bytes out of the buffer in order to probe the port at driver init. In
some cases the other end cannot be relied upon to read these bytes, so
provide a flag for them to skip this step.

Bit 19 was chosen as the flags are a int and the top bits are taken.

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c
include/linux/serial_core.h