Skip to content

MIPS: Simplify ELF appended dtb handling

Yasha Cherikovsky linux-mips lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4MIPS/head: Add comments after #endif and #elsearch/mips/kernel/head.S+7 -70 replies
2/4MIPS/head: Store ELF appended dtb in a global variable tooarch/mips/kernel/head.S+4 -20 replies
3/4MIPS: BMIPS: Remove special handling of CONFIG_MIPS_ELF_APPENDED_DTB=yarch/mips/bmips/setup.c+1 -81 reply
4/4MIPS: Octeon: Remove special handling of CONFIG_MIPS_ELF_APPENDED_DTB=yarch/mips/cavium-octeon/setup.c+3 -70 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchFlorian Fainelli
1/4
2/4
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] MIPS: Simplify ELF appended dtb handling

Hi,

This patch series simplifies and cleans up the handling of CONFIG_MIPS_ELF_APPENDED_DTB in the MIPS tree.

Specifically, it makes sure that the dtb appears in 'fw_passed_dtb' also under CONFIG_MIPS_ELF_APPENDED_DTB=y.

This allows to remove special platform code that handled the ELF appended dtb case, and replace it with the generic appended dtb case (fw_passed_dtb).

There's also a bonus: platforms that already handle 'fw_passed_dtb', gain now automatic support for detecting a DT blob under CONFIG_MIPS_ELF_APPENDED_DTB=y.

Patches:
- Patch 1 adds only comments (to make the file more readable for patch 2).
- Patch 2 fixes 'fw_passed_dtb' under CONFIG_MIPS_ELF_APPENDED_DTB=y.
- Patch 3 simplifies CONFIG_MIPS_ELF_APPENDED_DTB handling on the BMIPS platform.
- Patch 4 simplifies CONFIG_MIPS_ELF_APPENDED_DTB handling on the Octeon platform.

Patches 3 and 4 depend on patch 2.

The patches are on top of v4.18.

The patches are also available at:
https://github.com/yashac3/linux-rtl8186/commits/elf_appended_dtb_changes_on_4_18

Please review.

Thanks,
Yasha

Yasha Cherikovsky (4):
MIPS/head: Add comments after #endif and #else
MIPS/head: Store ELF appended dtb in a global variable too
MIPS: BMIPS: Remove special handling of CONFIG_MIPS_ELF_APPENDED_DTB=y
MIPS: Octeon: Remove special handling of
CONFIG_MIPS_ELF_APPENDED_DTB=y

 arch/mips/bmips/setup.c         |  9 +--------
 arch/mips/cavium-octeon/setup.c | 10 +++-------
 arch/mips/kernel/head.S         | 18 ++++++++++--------
 3 files changed, 14 insertions(+), 23 deletions(-)
Signature · 1 line
2.19.0