of/fdt: Don't use default address cell sizes for address translation
authorRob Herring (Arm) <robh@kernel.org>
Wed, 6 Nov 2024 17:08:07 +0000 (11:08 -0600)
committerRob Herring (Arm) <robh@kernel.org>
Fri, 8 Nov 2024 19:15:54 +0000 (13:15 -0600)
commit67759cfb043ae753fb56c3130375b66276633528
tree591fd2dd161859d5ae22f737dbf6c8249065633f
parent01d0467488c72e6d30cbc3261a3020080ba02378
of/fdt: Don't use default address cell sizes for address translation

FDT systems should never be relying on default cell sizes. It's been a
warning in dtc since 2007. The behavior here doesn't even match the
unflattened code which will walk the parent nodes looking for the cell
size properties (also deprecated). Furthermore, the FDT address
translation code is only used in one spot by SH and for earlycon which
was added 2014 and certainly isn't used on Powerpc systems.

Returning -1 values will result in an error message.

Link: https://lore.kernel.org/r/20241106170808.3827790-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/fdt_address.c