]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial/8250_pci: add a "force background timer" flag and use it for the "kt" serial...
authorDan Williams <dan.j.williams@intel.com>
Fri, 6 Apr 2012 18:49:50 +0000 (11:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Apr 2012 22:38:57 +0000 (15:38 -0700)
commitdb3c56d76ac8c7eee6c2652e056f326c699e8ce9
tree685399105f7879c76f66ba1b4fe4166a411fc4cb
parent450fb07050462a1b3839a7b8d301c34cc6882461
serial/8250_pci: add a "force background timer" flag and use it for the "kt" serial port

commit bc02d15a3452fdf9276e8fb89c5e504a88df888a upstream.

Workaround dropped notifications in the iir register.  Register reads
coincident with new interrupt notifications sometimes result in this
device clearing the interrupt event without reporting it in the read
data.

The serial core already has a heuristic for determining when a device
has an untrustworthy iir register.  In this case when we apriori know
that the iir is faulty use a flag (UPF_BUG_THRE) to bypass the test and
force usage of the background timer.

Acked-by: Alan Cox <alan@linux.intel.com>
Reported-by: Nhan H Mai <nhan.h.mai@intel.com>
Reported-by: Sudhakar Mamillapalli <sudhakar@fb.com>
Tested-by: Nhan H Mai <nhan.h.mai@intel.com>
Tested-by: Sudhakar Mamillapalli <sudhakar@fb.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250.c
drivers/tty/serial/8250/8250_pci.c
include/linux/serial_core.h