serial: 8250: Defer interrupt enable until fifos enabled
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 13 Jul 2015 01:11:31 +0000 (21:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jul 2015 00:48:43 +0000 (17:48 -0700)
commitee3ad90be5ec5e94a45aac597a23b1050cd4f1b0
tree87d65fc6f5dbf48384588b8df4842aad42080364
parent45c6df4471edf5404463756df1014fe7e36db3d3
serial: 8250: Defer interrupt enable until fifos enabled

An already-active sender can swamp the interrupt handler with
"too much work" if the rx interrupts are enabled when the fifo is
disabled and operating in single-byte mode.

Defer rx and line status interrupt enable until after the fifos
are enabled in set_termios(), but at least initialize the shadow
IER value with the interrupts which will be enabled.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c