]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Remove non-standard linux,elfcorehdr handling
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 11 Aug 2021 08:51:04 +0000 (10:51 +0200)
committerRob Herring <robh@kernel.org>
Tue, 24 Aug 2021 22:09:01 +0000 (17:09 -0500)
commitec3956d62fe3a0ecd19b83451ef0329be98aa5e2
treef6c7a99aa801c48c5b0b67fa3403ed9d31ca9ed1
parenta767cb104ee2cadafc1267d5a4b204fed3447545
riscv: Remove non-standard linux,elfcorehdr handling

RISC-V uses platform-specific code to locate the elf core header in
memory.  However, this does not conform to the standard
"linux,elfcorehdr" DT bindings, as it relies on a reserved memory node
with the "linux,elfcorehdr" compatible value, instead of on a
"linux,elfcorehdr" property under the "/chosen" node.

The non-compliant code can just be removed, as the standard behavior is
already implemented by platform-agnostic handling in the FDT core code.

Fixes: 15ebf5ab50e74449 ("RISC-V: Add crash kernel support")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/41c75d6ee3114ae6304f8afe0051895af91200ee.1628670468.git.geert+renesas@glider.be
arch/riscv/mm/init.c