Skip to content

Commit 8e029eb

Browse files
pcercueitsbogend
authored andcommitted
MIPS: Fix CONFIG_MIPS_CMDLINE_DTB_EXTEND handling
The CONFIG_MIPS_CMDLINE_DTB_EXTEND option is used so that the kernel arguments provided in the 'bootargs' property in devicetree are extended with the kernel arguments provided by the bootloader. The code was broken, as it didn't actually take any of the kernel arguments provided in devicetree when that option was set. Fixes: 7784cac ("MIPS: cmdline: Clean up boot_command_line initialization") Cc: [email protected] Signed-off-by: Paul Cercueil <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 3234f4e commit 8e029eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/mips/kernel/setup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,8 @@ static void __init bootcmdline_init(char **cmdline_p)
605605
* If we're configured to take boot arguments from DT, look for those
606606
* now.
607607
*/
608-
if (IS_ENABLED(CONFIG_MIPS_CMDLINE_FROM_DTB))
608+
if (IS_ENABLED(CONFIG_MIPS_CMDLINE_FROM_DTB) ||
609+
IS_ENABLED(CONFIG_MIPS_CMDLINE_DTB_EXTEND))
609610
of_scan_flat_dt(bootcmdline_scan_chosen, &dt_bootargs);
610611
#endif
611612

0 commit comments

Comments
 (0)