ARM: 9006/1: uncompress: Wait for ready and busy in debug prints
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 27 Aug 2020 22:29:34 +0000 (23:29 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 15 Sep 2020 13:35:29 +0000 (14:35 +0100)
commit0b0c1dbd500dfe3e43ccfa1c186f44e25ea6b23f
treea5b4febc7f5fb22cb55b3a82217cee955c6c99e2
parent4df24fef09615d8f7dd2120f5072486addfd3eb9
ARM: 9006/1: uncompress: Wait for ready and busy in debug prints

For some platforms such as Qualcomm we need to wait for the
UART to be ready before writing characters to the UART
in the same manner as the macro in debug.S used with the
main "Uncompressing Linux ..." text. Pass an extra temporary
variable to writeb and make it call waituarttxrdy and
busyuart just like the other decomression messages.

Optionally it will also call waituartcts if and only if
CONFIG_DEBUG_UART_FLOW_CONTROL is selected.

After this the decompression debug messages work fine on
Qualcomm platforms if you compile head.S with -DDEBUG.

Cc: Nicolas Pitre <nico@fluxnic.net>
Cc: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/boot/compressed/head.S