]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: Drop CMDLINE_* dependency on ATAGS
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 27 Sep 2022 13:28:26 +0000 (15:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:33 +0000 (13:22 +0200)
commit168eafb6e641b85b0ad46c496f69cc967727b561
treea69fc4ac3c182a59cdd21f4bb1020d71cee98df4
parenta224775426edd871d3f64710a462d702515ec6d8
ARM: Drop CMDLINE_* dependency on ATAGS

[ Upstream commit c14985f81dfa51cda5c35c9bb26545e3e8c4b908 ]

On arm32, the configuration options to specify the kernel command line
type depend on ATAGS.  However, the actual CMDLINE cofiguration option
does not depend on ATAGS, and the code that handles this is not specific
to ATAGS (see drivers/of/fdt.c:early_init_dt_scan_chosen()).

Hence users who desire to override the kernel command line on arm32 must
enable support for ATAGS, even on a pure-DT system.  Other architectures
(arm64, loongarch, microblaze, nios2, powerpc, and riscv) do not impose
such a restriction.

Hence drop the dependency on ATAGS.

Fixes: 7139647d5dd02e02 ("ARM: 7506/1: allow for ATAGS to be configured out when DT support is selected")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/Kconfig