ARM: 9043/1: tegra: Fix misplaced tegra_uart_config in decompressor
authorDmitry Osipenko <digetx@gmail.com>
Tue, 15 Dec 2020 15:16:44 +0000 (16:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2021 08:29:20 +0000 (09:29 +0100)
commit2de0745463e328d6f3f3f727011dd5767c4b5efa
treed1829dbc1f30156a4387f7b926a9fbe0c5d824cd
parent384cddbee46f07b029c7b44622d504e6ec4b3e22
ARM: 9043/1: tegra: Fix misplaced tegra_uart_config in decompressor

commit 538eea5362a1179dfa7770dd2b6607dc30cc50c6 upstream.

The tegra_uart_config of the DEBUG_LL code is now placed right at the
start of the .text section after commit which enabled debug output in the
decompressor. Tegra devices are not booting anymore if DEBUG_LL is enabled
since tegra_uart_config data is executes as a code. Fix the misplaced
tegra_uart_config storage by embedding it into the code.

Cc: stable@vger.kernel.org
Fixes: 2596a72d3384 ("ARM: 9009/1: uncompress: Enable debug in head.S")
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/include/debug/tegra.S