android_kernel_samsung_univ.../arch/mips/ath79
Matthias Schiffer 969f0f69e8 MIPS: ath79: make bootconsole wait for both THRE and TEMT
commit f5b556c94c8490d42fea79d7b4ae0ecbc291e69d upstream.

This makes the ath79 bootconsole behave the same way as the generic 8250
bootconsole.

Also waiting for TEMT (transmit buffer is empty) instead of just THRE
(transmit buffer is not full) ensures that all characters have been
transmitted before the real serial driver starts reconfiguring the serial
controller (which would sometimes result in garbage being transmitted.)
This change does not cause a visible performance loss.

In addition, this seems to fix a hang observed in certain configurations on
many AR7xxx/AR9xxx SoCs during autoconfig of the real serial driver.

A more complete follow-up patch will disable 8250 autoconfig for ath79
altogether (the serial controller is detected as a 16550A, which is not
fully compatible with the ath79 serial, and the autoconfig may lead to
undefined behavior on ath79.)

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-06-07 18:14:31 -07:00
..
clock.c MIPS: ath79: Add OF support to the clocks 2015-06-21 21:54:06 +02:00
common.c MIPS: ath79: Improve the DDR controller interface 2015-06-21 21:53:51 +02:00
common.h MIPS: Ath79: Remove the unused GPIO function API 2015-09-03 12:08:02 +02:00
dev-common.c MIPS: ath79: Add OF support to the GPIO driver 2015-06-21 21:54:09 +02:00
dev-common.h
dev-gpio-buttons.c
dev-gpio-buttons.h
dev-leds-gpio.c
dev-leds-gpio.h
dev-spi.c
dev-spi.h
dev-usb.c
dev-usb.h
dev-wmac.c
dev-wmac.h
early_printk.c MIPS: ath79: make bootconsole wait for both THRE and TEMT 2016-06-07 18:14:31 -07:00
irq.c MIPS: ATH79: Add irq chip ar7240-misc-intc 2015-09-22 19:07:11 +02:00
Kconfig MIPS: Add basic support for the TL-WR1043ND version 1 2015-06-21 21:54:10 +02:00
mach-ap81.c
mach-ap121.c
mach-ap136.c
mach-db120.c
mach-pb44.c
mach-ubnt-xm.c
machtypes.h MIPS: ath79: Add basic device tree support 2015-06-21 21:54:01 +02:00
Makefile MIPS: ath79: Move the GPIO driver to drivers/gpio 2015-09-03 12:08:02 +02:00
pci.c
pci.h
Platform
prom.c MIPS: ath79: fix build problem if CONFIG_BLK_DEV_INITRD is not set 2015-05-29 20:23:36 +02:00
setup.c MIPS: ath79: Add a machine entry for booting OF machines 2015-11-20 15:44:57 +01:00