]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "MIPS: Octeon: Remove special handling of CONFIG_MIPS_ELF_APPENDED_DTB=y"
authorKevin Hao <haokexin@gmail.com>
Tue, 19 Jan 2021 11:15:31 +0000 (19:15 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 19 Jan 2021 22:03:18 +0000 (23:03 +0100)
commit8a70f9e8a21a96932e0a75f5f091dfe01b971ff7
tree149da7698c651807d54eff452a40c0995df362db
parent915badd0573792e0b3fdb75f9de1fe89709b3447
Revert "MIPS: Octeon: Remove special handling of CONFIG_MIPS_ELF_APPENDED_DTB=y"

This reverts commit a4360e6f4f51b07b0a2dbbb61caca78a05029d79.

For the OCTEON boards, it need to patch the built-in DTB before using
it. Previously it judges if it is a built-in DTB by checking
fw_passed_dtb. But after commit 600b8b8de82e ("MIPS: head.S: Init
fw_passed_dtb to builtin DTB", the fw_passed_dtb is initialized even
when using built-in DTB. This causes the OCTEON boards boot broken due
to an unpatched built-in DTB is used. Revert the commit a4360e6f4f51 to
restore the codes before the fw_passed_dtb is used and then fix this
issue.

Fixed: 600b8b8de82e ("MIPS: head.S: Init fw_passed_dtb to builtin DTB")
Cc: stable@vger.kernel.org
Suggested-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/cavium-octeon/setup.c