]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
of/fdt: skip unflattening of disabled nodes
authorRob Herring <robh@kernel.org>
Tue, 3 Oct 2017 16:07:55 +0000 (11:07 -0500)
committerRob Herring <robh@kernel.org>
Mon, 16 Oct 2017 18:43:29 +0000 (13:43 -0500)
commit77ea8a68c54ede3fd60dadb6a49b597f6eb5aee7
tree38a0e128b10134641f114f87dac9ed6d88ec4d3d
parentecc8a96e251dc43d13841bac44fbfa34ec20fc52
of/fdt: skip unflattening of disabled nodes

For static DT usecases, we don't need the disabled nodes and can skip
unflattening. This saves a significant amount of RAM in memory constrained
cases. In one example on STM32F469, the RAM usage goes from 118K to 26K.

There are a few cases in the kernel that modify the status property
dynamically. These all are changes from enabled to disabled, depend on
OF_DYNAMIC or are not FDT based (PDT based).

Tested-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c