]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
tty: pl011: Work around QDF2400 E44 stuck BUSY bit
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 1 Feb 2017 15:46:38 +0000 (15:46 +0000)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 9 Mar 2017 19:08:00 +0000 (13:08 -0600)
commit02f469fe1ecd532ba0e27a76a884d724170c9c61
tree6bf9c9aad083ef83b79d4bbdb06dfb43cc8daca1
parent388c0e037c9cc2446c321019d8bc861b689ae6a5
tty: pl011: Work around QDF2400 E44 stuck BUSY bit

BugLink: http://bugs.launchpad.net/bugs/1671600
The Qualcomm Datacenter Technologies QDF2400 family of SoCs contains a
custom (non-PrimeCell) implementation of the SBSA UART. Occasionally the
BUSY bit in the Flag Register gets stuck as 1, erratum 44 for both 2432v1
and 2400v1 SoCs.Checking that the Transmit FIFO Empty (TXFE) bit is 0,
instead of checking that the BUSY bit is 1, works around the issue.

To facilitate this substitution of flags and values, introduce
vendor-specific inversion of Feature Register bits when UART AMBA Port
(UAP) data is available. For the earlycon case, prior to UAP availability,
implement alternative putc and early_write functions.

Similar to what how ARMv8 ACPI PCI quirks are detected during MCFG parsing,
check the OEM fields of the Serial Port Console Redirection (SPCR) ACPI
table to determine if the current platform is known to be affected by the
erratum.

Signed-off-by: Christopher Covington <cov@codeaurora.org>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Acked-by: Timur Tabi <timur@codeaurora.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(backported from commit d8a4995bcea168dfac8ee41c28c79109907e4fba)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/acpi/spcr.c
drivers/tty/serial/amba-pl011.c