riscv: Fix wrong usage of __pa() on a fixmap address
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Mon, 9 Dec 2024 07:45:08 +0000 (08:45 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 11 Dec 2024 19:43:44 +0000 (11:43 -0800)
commitc796e187201242992d6d292bfeff41aadfdf3f29
treea981a97ccef65ac6ffb0f4a73eb21cce1057f3a6
parentb3134b8c1a1cf5779a74df902c75fa185083006e
riscv: Fix wrong usage of __pa() on a fixmap address

riscv uses fixmap addresses to map the dtb so we can't use __pa() which
is reserved for linear mapping addresses.

Fixes: b2473a359763 ("of/fdt: add dt_phys arg to early_init_dt_scan and early_init_dt_verify")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20241209074508.53037-1-alexghiti@rivosinc.com
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/setup.c