linux/arch
Wenting Zhang 10f6913c54
riscv: always honor the CONFIG_CMDLINE_FORCE when parsing dtb
When CONFIG_CMDLINE_FORCE is enabled, cmdline provided by
CONFIG_CMDLINE are always used. This allows CONFIG_CMDLINE to be
used regardless of the result of device tree scanning.

This especially fixes the case where a device tree without the
chosen node is supplied to the kernel. In such cases,
early_init_dt_scan would return true. But inside
early_init_dt_scan_chosen, the cmdline won't be updated as there
is no chosen node in the device tree. As a result, CONFIG_CMDLINE
is not copied into boot_command_line even if CONFIG_CMDLINE_FORCE
is enabled. This commit allows properly update boot_command_line
in this situation.

Fixes: 8fd6e05c74 ("arch: riscv: support kernel command line forcing when no DTB passed")
Signed-off-by: Wenting Zhang <zephray@outlook.com>
Reviewed-by: Björn Töpel <bjorn@kernel.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/PSBPR04MB399135DFC54928AB958D0638B1829@PSBPR04MB3991.apcprd04.prod.outlook.com
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2022-10-11 19:53:08 -07:00
..
alpha TTY/Serial driver update for 6.1-rc1 2022-10-07 16:36:24 -07:00
arc
arm EFI updates for v6.1 2022-10-09 08:56:54 -07:00
arm64 RISC-V Patches for the 6.1 Merge Window, Part 1 2022-10-09 13:24:01 -07:00
csky
hexagon regmap: Updates for v6.1 2022-10-04 19:12:16 -07:00
ia64 TTY/Serial driver update for 6.1-rc1 2022-10-07 16:36:24 -07:00
loongarch EFI updates for v6.1 2022-10-09 08:56:54 -07:00
m68k m68k updates for v6.1 2022-10-03 09:48:47 -07:00
microblaze microblaze: Add support for error injection 2022-09-26 14:13:29 +02:00
mips The first batch of KVM patches, mostly covering x86, which I 2022-10-09 09:39:55 -07:00
nios2
openrisc
parisc TTY/Serial driver update for 6.1-rc1 2022-10-07 16:36:24 -07:00
powerpc The first batch of KVM patches, mostly covering x86, which I 2022-10-09 09:39:55 -07:00
riscv riscv: always honor the CONFIG_CMDLINE_FORCE when parsing dtb 2022-10-11 19:53:08 -07:00
s390 The first batch of KVM patches, mostly covering x86, which I 2022-10-09 09:39:55 -07:00
sh hardening updates for v6.1-rc1 2022-10-03 17:24:22 -07:00
sparc TTY/Serial driver update for 6.1-rc1 2022-10-07 16:36:24 -07:00
um hardening updates for v6.1-rc1 2022-10-03 17:24:22 -07:00
x86 The first batch of KVM patches, mostly covering x86, which I 2022-10-09 09:39:55 -07:00
xtensa
.gitignore
Kconfig kcfi updates for v6.1-rc1 2022-10-03 17:11:07 -07:00