]> git.baikalelectronics.ru Git - kernel.git/commit
of/fdt: Remove PPC32 longtrail hack in memory scan
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 27 Jul 2018 05:35:55 +0000 (15:35 +1000)
committerRob Herring <robh@kernel.org>
Tue, 7 Aug 2018 18:05:54 +0000 (12:05 -0600)
commite89c91c009074cde3652d3034be6ffc89252dc11
tree7b42a7d112eff61f2299c9c620ebcafd4d4dc2d9
parentb7a548b69a1a5535ba66ee733aabc4c416fbdb2f
of/fdt: Remove PPC32 longtrail hack in memory scan

When the OF code was originally made common by Grant in commit
e1b76f1503da ("of/flattree: merge early_init_dt_scan_memory() common
code") (Feb 2010), the common code inherited a hack to handle
PPC "longtrail" machines, which had a "memory@0" node with no
device_type.

That check was then made to only apply to PPC32 in 3c390792922c ("of:
Handle memory@0 node on PPC32 only") (May 2014).

But according to Paul Mackerras the "longtrail" machines are long
dead, if they were ever seen in the wild at all. If someone does still
have one, we can handle this firmware wart in powerpc platform code.

So remove the hack once and for all.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c