tty: pl011: fix earlycon work-around for QDF2400 erratum 44
authorTimur Tabi <timur@codeaurora.org>
Fri, 31 Mar 2017 22:05:02 +0000 (17:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Apr 2017 09:07:29 +0000 (11:07 +0200)
commite53e597fd4c4a0b6ae58e57d76a240927fd17eaa
tree6fcc6f9220d0ec88b84a1c10803690303f34245f
parent49e1590c2ead870f4ae5568816241c4cb9bc1606
tty: pl011: fix earlycon work-around for QDF2400 erratum 44

The work-around for the Qualcomm Datacenter Technologies QDF2400
erratum 44 sets the "qdf2400_e44_present" global variable if the
work-around is needed.  However, this check does not happen until after
earlycon is initialized, which means the work-around is not
used, and the console hangs as soon as it displays one character.

Fixes: d8a4995bcea1 ("tty: pl011: Work around QDF2400 E44 stuck BUSY bit")
Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c