]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Serial: Do not read IIR in serial8250_start_tx when UART_BUG_TXEN
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 18 Nov 2009 10:08:11 +0000 (11:08 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:05 +0000 (15:18 -0800)
commit68cb4f8e246bbbc649980be0628cae9265870a91
treeac21578ae76e640af2584726a80c20673f25ef1a
parent7e11a0fb3b7ab83871b7a56c7a67c603283ec4b9
Serial: Do not read IIR in serial8250_start_tx when UART_BUG_TXEN

Do not read IIR in serial8250_start_tx when UART_BUG_TXEN

Reading the IIR clears some oustanding interrupts so it is not safe.
Instead, simply transmit immediately if the buffer is empty without
regard to IIR.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Jiri Kosina <jkosina@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/8250.c