linux/drivers/tty/serial/8250
James Hogan 6979f8d280 serial: 8250_dw: Fix LCR workaround regression
Commit c49436b657 (serial: 8250_dw: Improve unwritable LCR workaround)
caused a regression. It added a check that the LCR was written properly
to detect and workaround the busy quirk, but the behaviour of bit 5
(UART_LCR_SPAR) differs between IP versions 3.00a and 3.14c per the
docs. On older versions this caused the check to fail and it would
repeatedly force idle and rewrite the LCR register, causing delays and
preventing any input from serial being received.

This is fixed by masking out UART_LCR_SPAR before making the comparison.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Tim Kryger <tim.kryger@linaro.org>
Cc: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Cc: Matt Porter <matt.porter@linaro.org>
Cc: Markus Mayer <markus.mayer@linaro.org>
Tested-by: Tim Kryger <tim.kryger@linaro.org>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-16 17:10:46 -08:00
..
8250_accent.c
8250_acorn.c tty: remove use of __devexit 2012-11-21 15:27:46 -08:00
8250_boca.c
8250_core.c serial: 8250: don't change the fifo trigger level when using dma 2013-09-26 14:27:24 -07:00
8250_dma.c serial: 8250_dma: Provide default slave configuration parameters 2013-04-11 13:20:19 -07:00
8250_dw.c serial: 8250_dw: Fix LCR workaround regression 2013-12-16 17:10:46 -08:00
8250_early.c serial: 8250_early: fix comparison of different types 2013-08-12 11:35:31 -07:00
8250_em.c serial8250-em: convert to clk_prepare/unprepare 2013-10-16 13:07:14 -07:00
8250_exar_st16c554.c
8250_fourport.c
8250_fsl.c
8250_gsc.c parisc: Fix interrupt routing for C8000 serial ports 2013-07-31 23:42:32 +02:00
8250_hp300.c tty: remove use of __devexit 2012-11-21 15:27:46 -08:00
8250_hub6.c
8250_pci.c serial: 8250_pci: add Pericom PCIe Serial board Support (12d8:7952/4/8) - Chip PI7C9X7952/4/8 2013-10-19 19:51:17 -07:00
8250_pnp.c Revert "tty/8250_pnp: serial port detection regression since v3.7" 2013-04-08 11:30:04 -07:00
8250.h serial: 8250: remove a few lines of dead code 2013-03-25 16:36:48 -07:00
Kconfig tty/serial/8250: fix typo in help text 2013-11-25 08:52:53 -08:00
Makefile TTY: 8250, revert module name change 2013-03-25 16:26:23 -07:00
serial_cs.c drivers/tty: use module_pcmcia_driver() in pcmcia drivers 2013-03-15 12:26:38 -07:00