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)
commitea5244e2af3b4813bf3d90ba6a6481d1a3c33d15
treefd749101b10ce79c833f5dd8f212039cf32bdd8e
parent70b2fe355a4cac3488a208ff13defefef45d6f77
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