ARM: 9011/1: centralize phys-to-virt conversion of DT/ATAGS address
authorArd Biesheuvel <ardb@kernel.org>
Mon, 10 May 2021 13:21:08 +0000 (06:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:13:18 +0000 (10:13 +0200)
commit6cdbafc2addd0a7c4e710a29b3ed2a8610add13a
tree491bdea81f8b78bcafdf36048792d6a0fa92e53f
parent6d5fda434b1f46c22ce3cde04729005dfb2eb2d6
ARM: 9011/1: centralize phys-to-virt conversion of DT/ATAGS address

commit e9a2f8b599d0bc22a1b13e69527246ac39c697b4 upstream

Before moving the DT mapping out of the linear region, let's prepare
for this change by removing all the phys-to-virt translations of the
__atags_pointer variable, and perform this translation only once at
setup time.

Tested-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/include/asm/prom.h
arch/arm/kernel/atags.h
arch/arm/kernel/atags_parse.c
arch/arm/kernel/devtree.c
arch/arm/kernel/setup.c
arch/arm/mm/mmu.c